r-无法使用ChoroplethrZip包中的get_Zip_Demographics()函数提取Zip人口统计数据



我正在尝试获取2015年的zip人口统计数据。当我尝试下面的代码时,会返回一条错误消息。

library(devtools)
install_github('arilamstein/choroplethrZip@v1.4.0')
library(choroplethrZip)
df_zip_2015 = get_zip_demographics(2015,5)

当数据试图读入时,我首先得到了强制警告引入的一些NA,但随后错误消息返回

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

我有办法解决这个问题吗?

看起来您正在安装choroplethrZip 1.4.0版本。然而,如果你进入choroplethrZip github页面,你会发现最新版本实际上是1.5.0。

当我运行此代码时:

library(devtools)
install_github('arilamstein/choroplethrZip@v1.5.0')
library(choroplethrZip)
df_zip_2015 = get_zip_demographics(2015,5)

我不明白你描述的错误。

最新更新