Get tracts-to-PUMA crosswalk from Census
get_tracts_puma_xwalk.RdDownload and construct a crosswalk between census tracts and PUMAs for specified years. Use to map ACS or PUMS data between tract and PUMA geographies in weighting pipelines.
Value
data.table with columns:
STATEFP
— state FIPS COUNTYFP
— county FIPS TRACTCE
— tract code PUMA
— PUMA code tract_id
— tract identifier Rows: one per tract.
Details
Downloads crosswalk files from Census for 2010 and 2020 vintages.
Handles mismatched tract/PUMA years by joining and constructing custom crosswalks.
Uses settings for state FIPS, input directories, and year selection.
Caches downloaded files locally; falls back to package backup if download fails.
Returns a data.table with tract, PUMA, and related columns; does not modify by reference.
Errors if required settings or geographies are missing.
Settings
inputs_dir (direct): directory for cached crosswalks. Default from settings.
state_fips (direct): state FIPS code. Default from settings.
pums_year (direct): PUMS year. Default from settings.
pumas (direct): valid PUMA codes. Default from settings.
See also
load_xwalk
scripts/weighting/get_tracts_puma_xwalk.R
Other ACS utilities:
get_acs_bg_counts(),
get_acs_bg_counts_base(),
get_overlap_allocation(),
get_puma_ids(),
get_pumas(),
get_xwalk_sfx_to_sfy(),
load_xwalk()