TrajLength {trajr} | R Documentation |
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
Numeric length of the trajectory.
See Also
[Package trajr version 1.5.1 Index]