Calculate the sequential distances between sequential coordinate pairs
Source:R/slope.R
route_sequential_dist.Rd
Calculate the sequential distances between sequential coordinate pairs
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)
#> Maximum distance is > 100km. The 'cheap' measure is inaccurate over such
#> large distances, you'd likely be better using a different 'measure',
#> one of 'haversine', 'vincenty', or 'geodesic'.
#> [1] 222257.4 111128.7 111128.7 111128.7 458196.5