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


trajr documentation built on May 29, 2024, 11:52 a.m.