Description Usage Arguments Details Value
View source: R/call_census_api.R
Returns Census data for the 2010 SF1 or ACS 2013-2015 1-, 3-, and 5-Yr aggregations for requested variables and geographies.
1 2 3 |
variables_to_get |
A character vector of the desired variable names for the Census API call, defined at https://www.census.gov/data/developers/data-sets.html |
names |
A character vector of the same length as |
geoids |
A character vector of FIPS codes; must be at least to the county (5-digit) level, and can accept down to blocks (15-digit). |
allgeos |
(optional) A string identifying the type of geography for
which to collect data within the the requested |
data_source |
A string identifying whether the SF1 (decennial census) or ACS data is desired. |
year |
If |
period |
If |
api_key |
The user's Census API key (as a character string). You can get
a free key from [Census](http://api.census.gov/data/key_signup.html). See
|
See vignette('censusr', package = 'censusr')
for examples.
a data_frame with each requested variable at each requested geography.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.