Skip to contents

Retrieves state FIPS codes for all states intersecting the study region. Use for subsetting ACS, PUMS, or other census data to relevant states.

Usage

get_state_fips(settings)

Arguments

settings

list. Must include:

  • acs_year

Value

character vector. State FIPS codes for study region.

Details

  • Fetches study region geometry from settings.

  • Downloads state polygons for ACS year.

  • Buffers and transforms study region for robust spatial intersection.

  • Returns state FIPS codes for intersecting states.

  • Output is a character vector of state FIPS codes.

  • Assumes settings include 'acs_year'.

Settings

  • acs_year (direct): ACS year for state polygons. Default from settings.

See also

fetch_study_region

Other geo utilities: format_geoids(), geoid_pad(), get_bg_geom(), get_county_fips(), get_puma_geom(), pad_geoid_cols()

Examples

## Not run:
get_state_fips(settings)
#> Error: object 'settings' not found