Learn R Programming

zipcodeR (version 0.3.5)

search_county: Search ZIP codes for a county

Description

Search ZIP codes for a county

Usage

search_county(county_name, state_abb, ...)

Value

tibble of all ZIP codes for given county name

Arguments

county_name

Name of a county within a U.S. state

state_abb

Two-digit code for a U.S. state

...

if the parameter similar = TRUE, then send the parameter max.distance to the base function agrep. Default is 0.1.

Examples

Run this code
middlesex <- search_county("Middlesex", "NJ")
alameda <- search_county("alameda", "CA")
search_county("ST BERNARD", "LA", similar = TRUE)$zipcode

Run the code above in your browser using DataLab