View source: R/points_in_circle.R
points_in_circle | R Documentation |
Filter all observations in a data.frame that fall within a circle of a specified radius drawn around a given latitude and longitude point.
points_in_circle(
data,
lon_center,
lat_center,
lon = lon,
lat = lat,
radius = 200
)
data |
data.frame with at least columns for longitude and latitude. |
lon_center |
numeric. Representing the longitude of the circle's center. |
lat_center |
numeric. Representing the latitude of the circle's center. |
lon |
column name in |
lat |
column name in |
radius |
radius of the circle in meters (default is 200m). |
A subset of the input data.frame containing only the observations that fall within the specified circle.
Martin Haringa
points_in_circle(Groningen, lon_center = 6.571561, lat_center = 53.21326,
radius = 60)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.