Description Usage Arguments Value
This returns a mutated Activatr DF with a new column representing speed, in meters per second. The speed is determined by looking at the time difference between the current point and the previous point: hence, it is always NA for the first row in the data frame.
1 | mutate_with_speed(df, method = c("2D", "3D"), lead = 0, lag = 1)
|
df |
A Activatr DF: a tibble from |
method |
If 2D (default), ignores elevation. If 3D, includes elevation. |
lead |
How far ahead to look for the "end" point |
lag |
How far behind to look for the "start" point |
That same Activatr DF, but with a new speed
column, in meters
per second.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.