Reads in the USPS census tract to zip code crosswalk, cleans up the variable names and types, adds a year variable, and removes entries with no residential units.

process_tract_to_zip(file_path)

Arguments

file_path

A character vector with the path to the crosswalk.

Value

A data frame with the processed crosswalk.

  • zip: zip code (character)

  • tract_fips: census tract FIPS code (character)

  • year: year (integer)

  • res_ratio: share of census tract's residential addresses in given zip code (numeric)