getTrajectoryLength: Obtain length of spatial trajectory

getTrajectoryLengthR Documentation

Obtain length of spatial trajectory

Description

Computes and returns the length of a spatial trajectory.

Usage

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.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.