# ¹zipcode_type, ²major_city, ³post_office_city, ⁴common_city_list, … # bounds_north, bounds_south, and abbreviated variable names # median_household_income, bounds_west, bounds_east , # occupied_housing_units, median_home_value , # land_area_in_sqmi, water_area_in_sqmi, housing_units , # area_code_list, population, population_density , # … with 2,198 more rows, 14 more variables: radius_in_miles , # 10 10007 Standard New Yo… New Yo… New Y… NY 40.7 -74.0 Eastern # 9 10006 Standard New Yo… New Yo… New Y… NY 40.7 -74.0 Eastern # 8 10005 Standard New Yo… New Yo… New Y… NY 40.7 -74.0 Eastern # 7 10004 Standard New Yo… New Yo… New Y… NY 40.7 -74.0 Eastern # 6 10003 Standard New Yo… New Yo… New Y… NY 40.7 -74.0 Eastern # 5 10002 Standard New Yo… New Yo… New Y… NY 40.7 -74.0 Eastern # 4 10001 Standard New Yo… New Yo… New Y… NY 40.8 -74.0 Eastern # 3 06390 PO Box Fisher… Fisher… Suffo… NY 41.3 -72.0 Eastern # 2 00544 Unique Holtsv… Suffo… NY NA NA # 1 00501 Unique Holtsv… Suffo… NY NA NA # zipcode zipcode…¹ major…² post_…³ common_c…⁴ county state lat lng timez…⁵ Let's start by finding all of the ZIP codes in New York: search_state('NY') Getting all ZIP codes for a single state is simple, you only need to pass a two-digit abbreviation of a state's name to get a tibble of all ZIP codes in that state. Let's begin by using zipcodeR to find all ZIP codes within a given state. The columns of data provided are: zipcode, zipcode_type, major_city, post_office_city, common_city_list, county, state, lat, lng, timezone, radius_in_miles, area_code_list, population, population_density, land_area_in_sqmi, water_area_in_sqmi, housing_units, occupied_housing_units, median_home_value, median_household_income, bounds_west, bounds_east, bounds_north, bounds_south Searching for ZIP codes by state You can either keep all 24 variables or filter to just one of these depending on what data you need. The package ships with an offline database containing 24 columns of data for each ZIP code. We'll cover these before showing you how you can implement this package with a real-world example. Basic search functionsįirst thing's first: zipcodeR's data & basic search functions are a core component of the package. The goal of these examples is to help you quickly get up and running with zipcodeR using real-world examples. This document will introduce the tools provided by zipcodeR for improving your workflow when working with ZIP code-level data. ZipcodeR is an all-in-one toolkit of functions and data for working with ZIP codes in R.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |