Learn R Programming

zipcodeR (version 0.3.5)

search_radius: Search for ZIP codes that are within a given radius from a point

Description

Search for ZIP codes that are within a given radius from a point

Usage

search_radius(lat, lng, radius = 1)

Value

a tibble containing the ZIP code(s) within the provided radius and distance from the provided coordinates in miles

Arguments

lat

latitude

lng

longitude

radius

distance to search in miles, set by default to 1

Examples

Run this code
if (FALSE) {
search_radius(39.9, -74.3, 10)
}

Run the code above in your browser using DataLab