Takes a movement data frame and calculates the row-by-row speed

add_speed(df, dimension = "3D")

Arguments

df

Movement data frame. Expects columns rot_x, rot_y, rot_z, time.

dimension

"3D" (default) or "2D" (only horizontal speed).

Value

Input data frame with column speed added.