R/processing_trial_functions.R
average_timeseries_cols.Rd
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"),
...
)
A trial results data frame.
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
A new data frame with averaged timeseries data.