Get all Census tracts within a given ZIP code

get_tracts(zip_code)

Arguments

zip_code

A U.S. ZIP code

Value

tibble of Census tracts and data from Census crosswalk file found for given ZIP code

Examples

get_tracts("08731")
#> # A tibble: 6 × 3 #> ZCTA5 TRACT GEOID #> <chr> <chr> <dbl> #> 1 08731 732001 34029732001 #> 2 08731 732002 34029732002 #> 3 08731 732101 34029732101 #> 4 08731 732103 34029732103 #> 5 08731 732104 34029732104 #> 6 08731 733000 34029733000
get_tracts("90210")
#> # A tibble: 11 × 3 #> ZCTA5 TRACT GEOID #> <chr> <chr> <dbl> #> 1 90210 143901 6037143901 #> 2 90210 143902 6037143902 #> 3 90210 214901 6037214901 #> 4 90210 261101 6037261101 #> 5 90210 261102 6037261102 #> 6 90210 261200 6037261200 #> 7 90210 262100 6037262100 #> 8 90210 700501 6037700501 #> 9 90210 700600 6037700600 #> 10 90210 700700 6037700700 #> 11 90210 700801 6037700801