【发布时间】:2016-04-02 16:09:58
【问题描述】:
希望通过acs 包获取最近发布的 2014 年 ACS 数据。使用了以下基本查询:
# Set the geo marker for all TN counties
geo <- geo.make(state = "TN", county = "*")
# Fetch Total Population for all TN counties
acs.fetch(endyear = 2014, span = 5, geography = geo, table.number = "B01003")
输出(缩短)是我对 2010-2014 年总人口表的预期:
ACS DATA:
2010 -- 2014 ;
Estimates w/90% confidence intervals;
for different intervals, see confint()
B01003_001
Anderson County, Tennessee 75346 +/- 0
Bedford County, Tennessee 45660 +/- 0
Benton County, Tennessee 16345 +/- 0
但我也收到此警告,这很奇怪,因为如果我在 ACS FactFinder website 中进行查找,我的 acs.fetch 的值匹配:
Warning messages:
1: In acs.fetch(endyear = 2014, span = 5, geography = geo, table.number = "B01003") :
As of the date of this version of the acs package
Census API did not provides data for selected endyear
2: In acs.fetch(endyear = endyear, span = span, geography = geography[[1]], :
As of the date of this version of the acs package
Census API did not provides data for selected endyear
我在这里误解了什么吗?我怎样才能看到正确的值,但警告消息告诉我人口普查 API 没有为我的参数提供数据?谢谢。
【问题讨论】:
-
if (endyear < 2010 | endyear > 2012)位于该软件包最新版本的源代码中。最好给维护者发电子邮件 eglenn@mit.edu
标签: r