Learn R Programming

spatialrisk (version 0.6.6)

points_in_circle: Points in circle

Description

The observations within radius from the center point.

Usage

points_in_circle(
  data,
  lon_center,
  lat_center,
  lon = lon,
  lat = lat,
  radius = 200
)

Arguments

data

A data.frame.

lon_center

Longitude of center point.

lat_center

Latitude of center point.

lon

Name of column in data with longitudes (lon is default).

lat

Name of column in data with latitudes (lat is default).

radius

Radius (in meters) (default is 200m).

Value

A data.frame of coordinates within radius around (lon_center, lat_center). The column distance_m gives the distance from the center point (in meters).

Examples

Run this code
# NOT RUN {
points_in_circle(Groningen, lon_center = 6.571561, lat_center = 53.21326, radius = 50)

# }

Run the code above in your browser using DataLab