calc_nn_metrics {swaRmverse} | R Documentation |
Relative Position of Nearest Neighbor Function to Parallelize
Description
This function calculates the bearing angle and distance from a focal individual to its nearest neighbor.
Usage
calc_nn_metrics(thists, geo)
Arguments
thists |
A timestep of individual positions, ids and headings. |
geo |
Logical, whether positions are geographic coordinates. |
Value
The input dataframe with new columns for nnd
(nearest neighbor distance),
nn_id
(its id) and bangl
(nearest neighbor bearing angle).
Author(s)
Marina Papadopoulou m.papadopoulou.rug@gmail.com
[Package swaRmverse version 0.1.0 Index]