View source: R/distanceTraveled.R
| distanceTraveled | R Documentation |
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.
distanceTraveled(data)
data |
An object of class 'trajectory' containing a collection of points with coordinates. |
A numeric value representing the total distance traveled through the points.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.