R/processing_movement_functions.R
combine_movement.RdThis is a convenience function used in extract_ and get_ functions that deal with two movement data frames.
A dataframe of movement (must contain standard trajectory columns, i.e. `"time"`, `"pos_x"`, `"pos_y"`, `"pos_z"`).
A dataframe of movement (must contain standard trajectory columns, i.e. `"time"`, `"pos_x"`, `"pos_y"`, `"pos_z"`).
Minimum time within the resampled movements (taken from `"time"` column) to search.
Maximum time within the resampled movements (taken from `"time"` column) to search.
resampling rate
a combined data frame with original position columns suffixed by .1 and .2
NOTE: because sampling times can differ between data frames, data are resampled at default rate of 10 Hz, and to avoid an impact of tracker glitches they are median-smoothed over 3 data points (300 ms).