rchoroplethr

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?


Solution

  • 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.