TrajLength: Trajectory length

View source: R/query.R

TrajLengthR 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

TrajStepLengths


JimMcL/trajr documentation built on July 23, 2024, 2:06 a.m.