2015-12-28 24 views
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沒有爲我的參數提供數據?謝謝。

+3

'if(endyear <2010 | endyear> 2012)'是包中最新版本的源代碼。 prbly最好通過電子郵件發送給維護者[email protected] – hrbrmstr

回答

4

從開發,以斯拉格倫([email protected]):

以上基本上是正確的:數據越來越牽強就好了。從2014年的數據可用之前,警告已經過時。 (從技術上講,這不是一個錯誤 - 只是一個警告信息,可能解釋如果數據確實沒有獲取而是,那麼它可以被安全地忽略,我將在下一個版本中刪除它。)

相關問題