Learn R Programming

zipcodeR (version 0.3.3)

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)

Arguments

lat

latitude

lng

longitude

radius

distance to search in miles, set by default to 1

Value

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

Examples

Run this code
# NOT RUN {
search_radius(39.9, -74.3, 10)
# }

Run the code above in your browser using DataLab