Skip to contents

Download or load PUMA shapefile for the study region and year. Use to obtain PUMA polygons for spatial joins and tabulation.

Usage

get_pumas(settings)

Arguments

settings

list. Must include inputs_dir, pums_year, state_fips.

Value

sf object. PUMA polygons for study region.

Details

  • Loads cached shapefile if available; otherwise downloads from Census.

  • Handles 2010/2019 and 2022+ boundaries using tigris or direct download.

  • Returns sf object; saves to file for future use.

  • Assumes valid settings and state FIPS; errors if unsupported.

Settings

  • inputs_dir (direct): directory for cached shapefiles. Default from settings.

  • pums_year (direct): PUMS year. Default from settings.

  • state_fips (direct): state FIPS code. Default from settings.

Examples

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