View source: R/prepare_covariates.R
spatial_angle | R Documentation |
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.
spatial_angle(x, coord.names = c("x", "y"), radius = NULL)
x |
data.frame with locations |
coord.names |
names of coordinates column in |
radius |
for angle calculation. Default is median of step length. |
vector of spatial angle.
Remi Patin, Simon Benhamou.
## Not run:
data(simulmode)
spatial_angle(simulmode)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.