queryCensusAPI.Rd
Pull data from US Census API
queryCensusAPI(data_url, key, get, region, numeric = TRUE)
data_url | The url root of the api including the '?' |
---|---|
key | API key |
region | A region specification containing a 'for:' and possibly an 'in:' |
vars | A character vector of variable names |
For information on the US Census API see https://www.census.gov/developers/.
This function is a modified version of the code published here: http://rstudio-pubs-static.s3.amazonaws.com/19337_2e7f827190514c569ea136db788ce850.html
Other census functions: runCensusAPIQueries
,
statePop
, vecToChunk