Closed sarasatullo closed 4 years ago
Hi Sara, the geography name has to be written out as county subdivision
, not cousub
. You can see the geography names with
response_geos <- listCensusMetadata(
name = "dec/responserate",
vintage = 2020,
type = "geographies"
)
This works
lv_responses <- getCensus(
name = "dec/responserate",
vintage = 2020,
vars = c("NAME", "RESP_DATE", "CRRALL", "CRRINT"),
region = "county subdivision:*",
regionin = "state:42"
)
Hope that helps.
Hi, I'm trying to pull the 2020 Census response rates for all of the towns, cities and municipalities in two Pennsylvania counties. I cannot seem to get COUSUB to work even thought it is listed as a geography. Everything I do throws this error: Error in apiCheck(req) : The Census Bureau returned the following error message: error: unknown/unsupported geography heirarchy