Learn R Programming

BioTrajectory (version 1.1.0)

length.trajectory: Length of the Trajectory

Description

Calculates the total length of the trajectory, which is the sum of the distances between consecutive points in the `Trajectory` object.

Usage

# S3 method for trajectory
length(x)

Value

A numeric value representing the total length of the trajectory.

Arguments

x

An object of class `Trajectory`.