get_elevation_gain {trackeR} | R Documentation |
(Cumulative) Elevation gain.
Description
(Cumulative) Elevation gain.
Usage
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
|
cumulative |
Logical. Return the cumulative elevation gain
( |
vertical_noise |
A scalar. Absolute elevation gains less that
|
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.
[Package trackeR version 1.6.0 Index]