我正在尝试使用 R 包“censusapi”查询数据。
以下代码...
getCensus(
name = "sf1",
vars = c("P0010001"),
region = "zip code tabulation area:*",
vintage = 2010,
key = Sys.getenv("CENSUS_KEY")
)
...引发此错误
Error: error: unknown/unsupported geography heirarchy
...
知道我需要在这里解决什么问题,以便我可以获得每个 ZCTA5 的 2010 年人口数据吗?顺便说一句,替换"zip code tabulation area:*"
为 `"county:*" 效果很好...