distAlongTrack: Calculate distance along the track.

View source: R/gpxhelpers-utils.R

distAlongTrackR Documentation

Calculate distance along the track.

Description

Calculates the cumulative distance along the track.

Usage

distAlongTrack(
  d,
  vars = c("Longitude", "Latitude"),
  units = c("miles", "km", "m")
)

Arguments

d

Data frame that contains the track coordinates.

vars

A string vector with the names in d that contain the longitude and latitude coordinates (in that order) along the track.

units

A string with the desired units for the distances.

Details

NONE YET

Value

A numeric vector with cumulative distances along the track.

Author(s)

Derek H. Ogle

See Also

distGeo

Examples

## None yet.


droglenc/gpxhelpers documentation built on Dec. 12, 2024, 1:33 a.m.