R/add_movement_functions.R
add_direction.Rd
Takes a movement data frame and calculates the row-by-row movement direction as unit vector
add_direction(df)
Movement data frame. Expects columns pos_x, pos_y, pos_z.
pos_x
pos_y
pos_z
Input data frame with columns dir_x, dir_y, dir_z added.
dir_x
dir_y
dir_z