简体   繁体   中英

Fail to extract Zip Demographics Data using get_zip_demographics() function in ChoroplethrZip package

I am trying to get the zip demographics data of the year 2015. When I tried the codes below, an error message returns.

library(devtools)
install_github('arilamstein/choroplethrZip@v1.4.0')

library(choroplethrZip)
df_zip_2015 = get_zip_demographics(2015,5)

When the data tries to read in, I first got a few NAs introduced by coercion warnings, but then an error message returns

Error in choroplethr:::convert_acs_obj_to_df("zip", age, 1) : 
argument "include_moe" is missing, with no default

Is there a way I can fix this?

It looks like you are installing choroplethrZip version 1.4.0. However, if you go to the choroplethrZip github page you will see that the latest version is actually 1.5.0.

When I run this code:

library(devtools)
install_github('arilamstein/choroplethrZip@v1.5.0')

library(choroplethrZip)
df_zip_2015 = get_zip_demographics(2015,5)

I do not get the error you describe.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM