calc_global_metrics: Calculation of Group Metrics

View source: R/metrics_calc_group.R

calc_global_metricsR Documentation

Calculation of Group Metrics

Description

This function calculates the average speed, polarization and shape of the group through time.

Usage

calc_global_metrics(x, geo)

Arguments

x

A dataframe of a timestep of a group.

geo

Logical, whether positions are geographic coordinates, default = FALSE.

Value

A dataframe with one row, with the group metrics for that timesteps, with columns: set, t, pol, speed, shape, N (number of individuals), missing_ind (whether some individuals are missing).

Author(s)

Marina Papadopoulou m.papadopoulou.rug@gmail.com


swaRmverse documentation built on Oct. 10, 2024, 5:08 p.m.