powered by
Calculate the gradient of line segments from distance and elevation vectors
route_slope_vector(x, e)
Vector of locations
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()
route_average_gradient()
route_rolling_average()
route_rolling_diff()
route_rolling_gradient()
route_sequential_dist()
route_slope_matrix()
# NOT RUN { x = c(0, 2, 3, 4, 5, 9) e = c(1, 2, 2, 4, 3, 1) / 10 route_slope_vector(x, e) # }
Run the code above in your browser using DataLab