View source: R/prepare_covariates.R
| calc_speed | R Documentation | 
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_speed(
  x,
  coord.names = c("x", "y"),
  timecol = "dateTime",
  smoothed = FALSE,
  units = "hour"
)
| x | data.frame with locations | 
| coord.names | names of coordinates column in  | 
| timecol | names of POSIXct time column | 
| smoothed | whether speed are smoothed or not | 
| units | units for time calculation. Default "hour" | 
vector of distance
Remi Patin
## Not run: calc_speed(df,coord.names = c("x","y"), timecol = "dateTime",
smoothed = T)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.