Learn R Programming

zctaCrosswalk (version 2.0.0)

get_zcta_metadata: Return metadata on a ZCTA

Description

Given a vector of ZIP Code Tabulation Areas (ZCTAs), return what state and county they are in. NOTE: A single ZCTA can span multiple states and counties.

Usage

get_zcta_metadata(zctas)

Value

A tibble, where each row is a (zcta, county, state) combination.

Arguments

zctas

A vector of ZCTAs (character or numeric)

Examples

Run this code
get_zcta_metadata("90210")

# Some ZCTAs span multiple counties
get_zcta_metadata(39573)

Run the code above in your browser using DataLab