getStates: Get the US states near to a zip code

Description Usage Arguments Value Examples

View source: R/ZipRadius.R

Description

getStates returns the list of states which have zip codes that fall in a specified radius in lower case format for use in choroplethrZip.

Usage

1
getStates(zipcode, radius)

Arguments

zipcode

The reference zip code of which you'd like the list of zip codes within a give radius as character.

radius

The distance in miles from the center of the given zip to the center of the other zips as numeric.

Value

A character vector of US state names, in lower case.

Examples

1
getStates("30316", 100)

EAVWing/ZipRadius documentation built on Feb. 16, 2020, 10:30 p.m.