get_elevation_gain | R Documentation |
(Cumulative) Elevation gain.
get_elevation_gain(
object,
smooth = FALSE,
cumulative = FALSE,
vertical_noise = 0
)
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
|
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.