Convenient wrapper around `average_timeseries`. For provided columns, averages resampled timeseries dataframes contained. Returns a new data frame with the averaged data and columns with grouping variables. No input checks are performed, i.e. if input data are not resampled at the same time index then no warning is thrown.

average_timeseries_cols(
  df,
  .cols = tidyselect::ends_with("_movement_data_0_resampled"),
  ...
)

Arguments

df

A trial results data frame.

.cols

Columns containing timeseries dataframes to average (Default: all resampled movement data). Each data frame must have a column 'new_time'.

...

grouping variable(s), arguments separated with commas

Value

A new data frame with averaged timeseries data.