Learn R Programming

BioTrajectory (version 1.1.0)

distanceTraveled: Calculates the total distance traveled through a series of points.

Description

Computes the cumulative distance between consecutive points in a given set of coordinates. It sums the Euclidean distances between each pair of adjacent points, providing the total distance traveled along the path defined by the points.

Usage

distanceTraveled(data)

Value

A numeric value representing the total distance traveled through the points.

Arguments

data

An object of class `trajectory` containing a collection of points with coordinates.