The input dataframe with a new speed and heading (rotational, in rads) columns.
Arguments
data
A dataframe with the time series of individuals' positions.
Columns must include: t, id, x, y.
geo
Logical, whether positions are geographic coordinates, default = TRUE.
verbose
Logical, whether to post updates on progress, default = FALSE.
parallelize
Logical, whether to run the function in parallel, default = FALSE.
independent_call
Logical, whether the function is called by itself or
as part of the package pipeline (through add_velocities). The default is
set to TRUE, reflecting the direct call of the function by the user.