Learn R Programming

swaRmverse (version 0.1.0)

parAddVelsVerb: Adding Individual Velocity Information in Parallel - Verbose

Description

This function calculates headings and speeds based on two location points and the time taken to travel between those points.

Usage

parAddVelsVerb(per_id, geo = FALSE)

Value

the input dataframe with a new speed and heading (rotational) column.

Arguments

per_id

Dataframe, the time series of individuals' positional data. Columns must include: t, id, x, y.

geo

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

Author

Marina Papadopoulou m.papadopoulou.rug@gmail.com