Learn R Programming

swaRmverse (version 0.1.0)

calc_global_metrics: 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)

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).

Arguments

x

A dataframe of a timestep of a group.

geo

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

Author

Marina Papadopoulou m.papadopoulou.rug@gmail.com