calc_global_metrics {swaRmverse}R 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


[Package swaRmverse version 0.1.1 Index]