【问题标题】:Census API did not provide data for selected endyearCensus API 未提供选定年末的数据
【发布时间】: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 &lt; 2010 | endyear &gt; 2012) 位于该软件包最新版本的源代码中。最好给维护者发电子邮件 eglenn@mit.edu

标签: r


【解决方案1】:

来自开发者 Ezra Glenn (eglenn@mit.edu):

以上内容基本上是正确的:数据获取得很好。从 2014 年数据可用之前的时间开始,该警告已经过时。 (从技术上讲,这不是一个错误 - 只是一条警告消息,可能解释如果数据没有没有获取时出了什么问题。在这种情况下,可以安全地忽略它。我将在下一个版本。)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-10-13
    • 1970-01-01
    • 1970-01-01
    • 2022-08-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-16
    相关资源
    最近更新 更多