Convenient 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"
)

Arguments

df

A trial results data frame.

.cols

Columns containing movement dataframes (Default: all movement and eye tracking data).

by

Time stamp column, default is time

Value

The same data frame with old movement data columns replaced