The script code/zip_county_crosswalk.R
creates zip-county crosswalk data using HUD-USPS data and Census Data. I only kept the states in the Mainland US, and excluded the US Territories (as required in my research project).
- "ZIP_COUNTY_032023.xlsx" (2023 Q1 data)
- We need to register and login to download the data (alternatively the data can be retrieved using the HUD API)
- Note: The HUD-USPS ZIP Code Crosswalk files are now available for 2020 Census geographies beginning with the 2023 Q1 data release.
The following article demonstrates how to more effectively use the HUS-USPS ZIP Code Crosswalk Files.
Wilson, Ron and Din, Alexander, 2018. “Understanding and Enhancing the U.S. Department of Housing and Urban Development’s ZIP Code Crosswalk Files,” Cityscape: A Journal of Policy Development and Research, Volume 20 Number 2, 277 – 294.
- Retrieve County Names from Census Data
dplyr
, tidyverse
, readxl
, writexl
Excel File: output/county_zip_crosswalk.xlsx
Variables:
zipcode
: 5 digit zip code numberCountyFIPS_5
: 5 digit FIPS code (2 digit state code + 3 digit county code)CountyName
: County names from the CensusStateAbbr
: Two-letter Postal State abbreviationStateFIPSCode
: 2 digit FIPS State codeCountyFIPSCode
: 3 digit FIPS County codemax_tot_ratio
: Largest Total Address Ratio corresponding to that ZIP CodeRES_RATIO
: proportion of residential addresses in that ZIP Code
Debasmita Das (Georgia Tech, 2023)
This project is licensed under the MIT License.