This function calculates headings and speeds based on two location points and the time taken to travel between those points.
parAddVels(per_id, geo = FALSE)
the input dataframe with a new speed and heading (rotational) column.
Dataframe with the time series of individuals' positional data.
Columns must include: t
, id
, x
, y
.
Logical, whether positions are geographic coordinates, default = FALSE.
Marina Papadopoulou m.papadopoulou.rug@gmail.com