View source: R/get_acs_years.R
get_acs_years | R Documentation |
Pull ACS Census data for multiple years across the same geographies and combine into a single dataframe.
get_acs_years(
variables = NULL,
years = NULL,
geography = NULL,
state = NULL,
survey = NULL
)
variables |
Character string or vector of character strings of variable IDs. tidycensus automatically returns the estimate and the margin of error associated with the variable. |
years |
a dataframe containing a list of the years to include data from. |
geography |
The geography of your data. |
state |
An optional vector of states for which you are requesting data. State names, postal codes, and FIPS codes are accepted. Defaults to NULL. |
survey |
The ACS contains one-year, three-year, and five-year surveys expressed as "acs1", "acs3", and "acs5". The default selection is "acs5." |
A dataframe containing all identified census variables for the specified years.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.