1
打算在2014年通過acs
包發佈ACS數據。用下面的基本查詢:人口普查API未提供選定年份的數據
# 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.fetch
匹配的值,如果我做了查找在ACS FactFinder website:
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)'是包中最新版本的源代碼。 prbly最好通過電子郵件發送給維護者[email protected] – hrbrmstr