route_sequential_dist {stplanr} | R Documentation |
Calculate the sequential distances between sequential coordinate pairs
Description
Calculate the sequential distances between sequential coordinate pairs
Usage
route_sequential_dist(m, lonlat = TRUE)
Arguments
m |
Matrix containing coordinates and elevations |
lonlat |
Are the coordinates in lon/lat order? |
See Also
Other route_funs:
route_average_gradient()
,
route_rolling_average()
,
route_rolling_diff()
,
route_rolling_gradient()
,
route_slope_matrix()
,
route_slope_vector()
Examples
x <- c(0, 2, 3, 4, 5, 9)
y <- c(0, 0, 0, 0, 0, 1)
m <- cbind(x, y)
route_sequential_dist(m)
[Package stplanr version 1.2.1 Index]