spatial_angle: Calculate spatial angle along a path

View source: R/prepare_covariates.R

spatial_angleR Documentation

Calculate spatial angle along a path

Description

spatial_angle calculate spatial angle between locations, taking a dataframe as input. Spatial angle is considered as the angle between the focus point, the first location entering a given circle and the last location inside.

Usage

spatial_angle(x, coord.names = c("x", "y"), radius = NULL)

Arguments

x

data.frame with locations

coord.names

names of coordinates column in x

radius

for angle calculation. Default is median of step length.

Value

vector of spatial angle.

Author(s)

Remi Patin, Simon Benhamou.

Examples

## Not run: 
data(simulmode)
spatial_angle(simulmode)

## End(Not run)

segclust2d documentation built on Aug. 21, 2023, 9:10 a.m.