powered by
calc_dist calculate distance between locations, taking a dataframe as input. Distance can also be smoothed over the two steps before and after the each point.
calc_dist
calc_dist(x, coord.names = c("x", "y"), smoothed = FALSE)
vector of distance
data.frame with locations
names of coordinates column in x
x
whether distance are smoothed or not
Remi Patin
if (FALSE) calc_dist(df,coord.names = c("x","y"), smoothed = T)
Run the code above in your browser using DataLab