hrecht / censusapi

R package to retrieve U.S. Census data and metadata via API
https://www.hrecht.com/censusapi/
169 stars 30 forks source link

Question #70

Closed jtownsle closed 3 years ago

jtownsle commented 3 years ago

I can't find a way to generate output for a specific region range. For example, I'm looking for business practices for all zip codes in Indiana (ZBP), so have a range of 46001:47997. This code works for one zip code: zbp16 <- getCensus(name = "zbp", vintage = 2018, vars = c("NAICS2017","ESTAB","EMPSZES","INDGROUP"), region = "zipcode:46202")

jtownsle commented 3 years ago

I realized I can separate the zip codes with a comma and it works. thanks