View source: R/get_multi_vintage_data.R
| get_multi_vintage_data | R Documentation |
Function produces a data.table/dataframe of Census Bureau data for multiple vintages. The function requires an access key issued from the Bureau.
get_multi_vintage_data(
dataset,
vintage_v,
vars,
vars_init = c("GEO_ID", "NAME"),
region = NULL,
regionin = NULL,
key = Sys.getenv("CENSUS_KEY")
)
dataset |
A string that sets the name of the data set of interest (e.g. "acs/acs5") |
vintage_v |
A numeric vector that sets the vintages of interest. |
vars |
Can be either a string vector of variable names to be acquired. Also can be a named list of string vectors to separate groups of variables. |
vars_init |
A string vector of variable names to append to |
region |
A string that specifies the geography of the request.
See |
regionin |
A string that sets a qualifier for |
key |
A key string issued by the Census Bureau in making data requests. |
Get Census Bureau data for a specific dataset, variables, and region in the form of a dataframe for multiple vintages.
A data.table
Rick Dean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.