Fetch PUMA shapefile for study region
get_puma_geom.RdLoads or downloads PUMA shapefile for the study region, trimming to region boundaries. Use for spatial joins, mapping, or reference lookups.
Details
Loads shapefile from disk if available; downloads if missing.
Uses settings for PUMS year and input directory.
Downloads PUMAs for each state FIPS in study region.
Buffers and trims PUMAs to study region using spatial intersection.
Concatenates state and PUMA codes for unique PUMA ID.
Saves trimmed shapefile to disk for future use.
Returns sf object of PUMA polygons.
Assumes settings include 'pums_year', 'inputs_dir', and state FIPS.
Settings
pums_year (direct): PUMS year for shapefile. Default from settings.
inputs_dir (direct): directory for input files. Default from settings.
puma_buffer (direct): buffer distance for region trim. Default -100.
See also
fetch_study_region, get_state_fips
Other geo utilities:
format_geoids(),
geoid_pad(),
get_bg_geom(),
get_county_fips(),
get_state_fips(),
pad_geoid_cols()