perIdVels: Speed and Heading Calculation based on swaRm Package.
Description
This function calculates headings and speeds based on
consecutive locations of 1 individual. Based on the heading and the
linear_speed functions of swaRm.
Usage
perIdVels(per_id, geo)
Value
the input dataframe with a new speed and heading (rotational) column.
Arguments
per_id
Time series of 1 individual's positional data.
geo
whether positions are geographic coordinates, default = FALSE.