Computes and returns the length of a spatial trajectory.

getTrajectoryLength(object, id, unit = "px", round = FALSE, as_numeric = FALSE)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

unit

Character value. Specifies the desired unit in which distance measures or area measures are provided. Run validUnitsOfLength() or validUnitsOfArea() for valid input options.

Value

The length of the spatial directory as a single distance value.