R/extract_movement_functions.R
extract_movement_dist.Rd
#' Searches a movement trajectory dataframe and summarises distance (ignoring y) to a reference position as average or minimum.
A dataframe of movement (must contain standard trajectory columns, i.e. `"time"`, `"pos_x"`, `"pos_y"`, `"pos_z"`).
Reference position, stored as a list containing `"pos_x"`, `"pos_z"` items.
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
A numeric value of the minimum 2D distance of the ref_movement trajectory to the supplied safe position.