route_slope_vector | R Documentation |
Calculate the gradient of line segments from distance and elevation vectors
route_slope_vector(x, e)
x |
Vector of locations |
e |
Elevations in same units as x (assumed to be metres) |
Other route_funs:
route_average_gradient()
,
route_rolling_average()
,
route_rolling_diff()
,
route_rolling_gradient()
,
route_sequential_dist()
,
route_slope_matrix()
x <- c(0, 2, 3, 4, 5, 9)
e <- c(1, 2, 2, 4, 3, 1) / 10
route_slope_vector(x, e)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.