R/processing_trial_functions.R
summarise_movement_cols.RdConvenient wrapper around summarise_movement. For provided columns,
summarises movement data frames and returns the same data frame with unique
time stamp values and a new column n to indicate duplicated time stamps.
summarise_movement_cols(
df,
.cols = (tidyselect::ends_with("_movement_data_0") |
tidyselect::ends_with("_eye_tracking_data_0")) & !(tidyselect::starts_with("valid")),
by = "time"
)The same data frame with old movement data columns replaced