Closed RSchwinn closed 5 years ago
Yes, hoping to add that in the next version of this package!
Done, in v0.6.0 https://github.com/hrecht/censusapi/commit/a5f0edb8081c428e7ae092065b3c39a408f3869d It's not on CRAN yet, but can be installed with:
# install.packages("devtools")
devtools::install_github("hrecht/censusapi")
Here's an example using EMPSZES:
cbp_2008 <- getCensus(name = "cbp",
vintage = 2008,
vars = c("YEAR", "EMPSZES_TTL", "EMP", "ESTAB", "PAYANN", "GEO_TTL"),
region = "state:*",
EMPSZES = 260)
head(cbp_2008)
Thanks for your great package! Would it be possible to add miscellaneous parameters to API requests? The county business patterns requires additional comments in order to report data by employment size. See example below:
No Employment Sizes
https://api.census.gov/data/2008/cbp?get=YEAR,EMPSZES_TTL,EMP,ESTAB,PAYANN,GEO_TTL&for=state:01
Adding "&EMPSZES=" Provides Employment Sizes `https://api.census.gov/data/2008/cbp?get=YEAR,EMPSZES_TTL,EMP,ESTAB,PAYANN,GEO_TTL&for=state:01&EMPSZES=`