Description Usage Arguments Details See Also
View source: R/census_API_functions.R
Pull data from US Census API
1 | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.