R/processing_movement_functions.R
reorient_movement_to_start.Rd
This is a convenience function to make imprecisely attached trackers comparable between scenarios. For example waist trackers may be in a slightly different place on the torso on different trials and subjects. This functions subtracts the median of the first 10 rows and adds the starting position. The median is used to avoid impact of tracker imprecision in individual frames.
A movement data frame.
Columns to reorient. Default: all rotations and in-plane position
Reference position (named list, names must correspond to columns in df. See also `find_start_pos` for a way of generating such a list)
A re-oriented data frame with the same column names