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

add_speed(df)

Arguments

df

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

Value

Input data frame with column `speed` added.