Given a set of locations defining a trajectory, this function
computes the linear speeds between each pair of successive locations along
the trajectory.
Usage
linear_speed(x, y, t, geo = FALSE)
linSpeed(x, y, t, geo = FALSE)
Value
A vector of the same length as x and y corresponding to the linear
speeds between each pair of successive locations along the trajectory.
Arguments
x
A vector of x (or longitude) coordinates corresponding to a single
trajectory.
y
A vector of y (or latitude) coordinates corresponding to a single
trajectory.
t
A vector of timestamps corresponding to a single trajectory.
geo
A logical value indicating whether the locations are defined by
geographic coordinates (pairs of longitude/latitude values). Default: FALSE.