Convenient wrapper around reorient_movement

translate_ref_movement_cols(
  df,
  .cols = tidyselect::ends_with("_movement_data_0") & !(tidyselect::starts_with("valid")),
  ref_pos_col = c()
)

Arguments

df

A trial results data frame.

.cols

Columns containing dataframes to resample. (Default: all movement data). Each data frame must have a column 'time'.

ref_pos_col

Column containing reference position (e.g. fruit picking position)

Value

The data frame with movement data offset and new columns with resampling, with new column name ending with _resampled.

Details

Non-existing time points for any trial are filled with "NA". Position values will be reoriented to reference position if given.