get_elevation_gain: (Cumulative) Elevation gain.

Description Usage Arguments Details

Description

(Cumulative) Elevation gain.

Usage

1
2
get_elevation_gain(object, smooth = FALSE, cumulative = FALSE,
  vertical_noise = 0)

Arguments

object

A (univariate) zoo object.

smooth

Logical. Should the elevation be smoothed? Default is TRUE.

cumulative

Logical. Return the cumulative elevation gain (FALSE; default) or just the elevation gain?

vertical_noise

A scalar. Absolute elevation gains less that vertical_noise are set to zero. Default is 0.

Details

The elevation gain is defined here as the difference in altitude between two consecutive observations. If cumulative = FALSE then the elevation gain is returned, otherwise any elevation loses (i.e. negative elevation gain) are ignored and the cumulative elevation gain is returned. If smooth = TRUE then the elevation gain will be smoothed using a spline smoother before either returning it or computing cumulative elevation gains.


trackeR documentation built on May 15, 2019, 5:04 p.m.