getZipPop: get the population living near a zip code

Description Usage Arguments Value Examples

View source: R/ZipRadius.R

Description

getZipPop returns a data frame of zip codes and their population where the zip codes fall within a given radius for use in choroplethrZip.

Usage

1
getZipPop(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 data frame with two columns. the length of the zipcodes argument.

zip

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

population

Numeric. The population of that zip code.

Examples

1
getZipPop("30316", 10)

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