powered by
Find all observations in a data.frame within a circle of a certain radius.
points_in_circle( data, lon_center, lat_center, lon = lon, lat = lat, radius = 200 )
data.frame. Column distance_m gives the distance to the center of the circle (in meters).
distance_m
data.frame with at least columns for longitude and latitude.
numeric value referencing to the longitude of the center of the circle
numeric value referencing to the latitude of the center of the circle
column name in data with longitudes (lon is default).
data
lon
column name in data with latitudes (lat is default).
lat
radius (in meters) (defaults to 200m).
Martin Haringa
points_in_circle(Groningen, lon_center = 6.571561, lat_center = 53.21326, radius = 60)
Run the code above in your browser using DataLab