TrajDuration: Trajectory duration

View source: R/query.R

TrajDurationR Documentation

Trajectory duration

Description

Calculates the temporal duration of a trajectory (or a portion of a trajectory).

Usage

TrajDuration(trj, startIndex = 1, endIndex = nrow(trj))

Arguments

trj

Trajectory whose duration is to be calculated.

startIndex

Index of the starting point.

endIndex

Index of the ending point.

Value

Numeric duration of the trajectory, in time units.

See Also

TrajGetTimeUnits


JimMcL/trajr documentation built on Jan. 31, 2024, 12:57 a.m.