Given a ZIP code, returns columns of metadata about that ZIP code

reverse_zipcode(zip_code)

Arguments

zip_code

A 5-digit U.S. ZIP code or chracter vector with multiple ZIP codes

Value

A tibble containing data for the ZIP code(s)

Examples

reverse_zipcode('90210')
#> 1 row of data found for ZIP code: "90210"
#> # A tibble: 1 x 24 #> zipcode zipcode_type major_city post_office_city common_city_list county state #> <chr> <chr> <chr> <chr> <list<raw>> <chr> <chr> #> 1 90210 Standard Beverly H~ Beverly Hills, ~ [25] Los A~ CA #> # ... with 17 more variables: lat <dbl>, lng <dbl>, timezone <chr>, #> # radius_in_miles <dbl>, area_code_list <list<raw>>, population <int>, #> # population_density <dbl>, land_area_in_sqmi <dbl>, #> # water_area_in_sqmi <dbl>, housing_units <int>, #> # occupied_housing_units <int>, median_home_value <int>, #> # median_household_income <int>, bounds_west <dbl>, bounds_east <dbl>, #> # bounds_north <dbl>, bounds_south <dbl>
reverse_zipcode('08731')
#> 1 row of data found for ZIP code: "08731"
#> # A tibble: 1 x 24 #> zipcode zipcode_type major_city post_office_city common_city_list county state #> <chr> <chr> <chr> <chr> <list<raw>> <chr> <chr> #> 1 08731 Standard Forked Ri~ Forked River, NJ [24] Ocean~ NJ #> # ... with 17 more variables: lat <dbl>, lng <dbl>, timezone <chr>, #> # radius_in_miles <dbl>, area_code_list <list<raw>>, population <int>, #> # population_density <dbl>, land_area_in_sqmi <dbl>, #> # water_area_in_sqmi <dbl>, housing_units <int>, #> # occupied_housing_units <int>, median_home_value <int>, #> # median_household_income <int>, bounds_west <dbl>, bounds_east <dbl>, #> # bounds_north <dbl>, bounds_south <dbl>
reverse_zipcode(c('08734','08731'))
#> 2 rows of data found for ZIP codes: "08734", "08731"
#> # A tibble: 2 x 24 #> zipcode zipcode_type major_city post_office_city common_city_list county state #> <chr> <chr> <chr> <chr> <list<raw>> <chr> <chr> #> 1 08731 Standard Forked Ri~ Forked River, NJ [24] Ocean~ NJ #> 2 08734 Standard Lanoka Ha~ Lanoka Harbor, ~ [25] Ocean~ NJ #> # ... with 17 more variables: lat <dbl>, lng <dbl>, timezone <chr>, #> # radius_in_miles <dbl>, area_code_list <list<raw>>, population <int>, #> # population_density <dbl>, land_area_in_sqmi <dbl>, #> # water_area_in_sqmi <dbl>, housing_units <int>, #> # occupied_housing_units <int>, median_home_value <int>, #> # median_household_income <int>, bounds_west <dbl>, bounds_east <dbl>, #> # bounds_north <dbl>, bounds_south <dbl>
reverse_zipcode('07762')$county
#> 1 row of data found for ZIP code: "07762"
#> [1] "Monmouth County"
reverse_zipcode('07762')$state
#> 1 row of data found for ZIP code: "07762"
#> [1] "NJ"