zipRadius: The zipRadius Function

Description Usage Arguments Value Examples

View source: R/ZipRadius.R

Description

Find all zip codes within a radius of a specified zip code.

Usage

1
zipRadius(zipcode, radius)

Arguments

zipcode

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

radius

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

Value

A data frame with six columns. the length of the zipcodes argument.

zip

Character. A zip code nearby to the reference zip code.

city

Character. The cities containing the zip codes.

state

Character. The states containing the zip codes.

latitude

Numeric. The latitudes of the centers of the zip codes.

longitude

Numeric. The longitudes of the centers of the zip codes.

Distance

Numeric. The distance in miles from the center of the reference zip code to the center of the zip code in that row.

Examples

1
2
3
4
5
# A real zip code
zipRadius("30316", 10)

# A made up zip code
zipRadius("99999", 10)

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