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