census_to_customgeo: Function to flexibly convert psrccensus estimates to any...

census_to_customgeoR Documentation

Function to flexibly convert psrccensus estimates to any regional sf geography

Description

Function to flexibly convert psrccensus estimates to any regional sf geography

Usage

census_to_customgeo(df, custom_geo, custom_geo_var, wgt = "total_pop")

Arguments

df

acs or decennial dataset returned from psrccensus

custom_geo

custom sf file with intended geography/geometry

custom_geo_var

grouping variable from custom geography file, i.e. geography label

wgt

measure share used as split weight either "total_pop" (default), "household_pop", "group_quarters_pop", "housing_units" or "occupied_housing_units"

Value

table with custom geographic units in place of census geography units

Author(s)

Michael Jensen


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