View source: R/metrics_calc_pairwise.R
par_nn_metrics | R Documentation |
This function calculates the bearing angle and distance from a focal individual to its nearest neighbor at the given timestep.
par_nn_metrics(per_time, geo = FALSE)
per_time |
A groups positional data at a single timestep.
Columns must include: |
geo |
Logical, whether positions are geographic coordinates, default = FALSE. |
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.