Calculate instantaenous speed.
wat_get_speed(data, x = "x", y = "y", time = "time")
data | A dataframe or similar which must have the columns
specified by |
---|---|
x | The x coordinate. |
y | The y coordinate. |
time | The timestamp in seconds since the UNIX epoch. |
A vector of numerics representing speed. The first position is assigned a speed of NA.