View source: R/metrics_calc_pairwise.R
calc_nn_metrics | R Documentation |
This function calculates the bearing angle and distance from a focal individual to its nearest neighbor.
calc_nn_metrics(thists, geo)
thists |
A timestep of individual positions, ids and headings. |
geo |
Logical, whether positions are geographic coordinates. |
The input dataframe with new columns for nnd
(nearest neighbor distance),
nn_id
(its id) and bangl
(nearest neighbor bearing angle).
Marina Papadopoulou m.papadopoulou.rug@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.