get_acs_years: Pull ACS Census data for multiple years across the same...

View source: R/get_acs_years.R

get_acs_yearsR Documentation

Pull ACS Census data for multiple years across the same geographies and combine into a single dataframe.

Description

Pull ACS Census data for multiple years across the same geographies and combine into a single dataframe.

Usage

get_acs_years(
  variables = NULL,
  years = NULL,
  geography = NULL,
  state = NULL,
  survey = NULL
)

Arguments

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."

Value

A dataframe containing all identified census variables for the specified years.


childpovertyactionlab/CPAL documentation built on Feb. 23, 2025, 8:19 a.m.