R/extract_movement_functions.R
extract_movement2_dist.Rd
Searches two dataframes of movement trajectories and summarises distance (ignoring y) between the two trajectories as average or minimum.
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 ref_movement (taken from `"time"` column) to search.
Maximum time within the ref_movement (taken from `"time"` column) to search.
whether to extract min (default), max or mean
resampling rate
A numeric value of the minimum 2D distance of the two movement trajectories.
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).