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

View source: R/distanceTraveled.R

distanceTraveledR Documentation

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)

Arguments

data

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

Value

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


BioTrajectory documentation built on Nov. 26, 2025, 5:07 p.m.