get_acs_recs: ACS Estimates

View source: R/get-acs-recs.R

get_acs_recsR Documentation

ACS Estimates

Description

Generate ACS estimates for multiple tables by tracts, counties, MSAs, or places for multiple years.

Usage

get_acs_recs(
  geography,
  state = "Washington",
  counties = c("King", "Kitsap", "Pierce", "Snohomish"),
  table.names,
  years,
  FIPS = c("14740", "42660"),
  place_FIPS = NULL,
  acs.type
)

Arguments

geography

A character string as either 'tract', 'county', 'msa', or 'place'.

state

A character string state name or abbreviation. Defaults to Washington.

counties

A character string or vector of counties. Defaults to PSRC counties.

table.names

A character string or vector of Census table codes.

years

A numeric value or vector of years. An ACS year equal or greater than 2010 to the latest available year.

FIPS

Character string for FIPS codes for specific MSA geographies. Defaults to Seattle & Bremerton MSA c("14740","42660")

place_FIPS

Character string of FIPS codes (with state prefix) for specific Census Places. If NULL, Places within the PSRC Region will be returned.

acs.type

A character string as either 'acs1', 'acs3' or acs5'.

Value

a tibble of ACS estimates by selected geography for selected table codes. Includes variable names.

Author(s)

Craig Helmann

Examples

get_acs_recs(geography = 'county',
             table.names = c('B03002'),
             years=c(2017,2019),
             acs.type = 'acs1')

get_acs_recs(geography = 'county',
             table.names = c("C17002"),
             counties=c("Kitsap"),
             years=c(2019),
             acs.type = 'acs5')


psrc/psrccensus documentation built on June 1, 2025, 1:06 p.m.