TrajLength: Trajectory length
Description
Calculates the cumulative length of a trajectory (or a portion of a
trajectory), which is the total distance travelled along the trajectory.
Usage
TrajLength(trj, startIndex = 1, endIndex = nrow(trj))
Arguments
trj
Trajectory whose length is to be calculated.
startIndex
Index of the starting point.
endIndex
Index of the ending point.
Value
Path Numeric length of the trajectory.