Takes a list of resampled time series data frames and averages them into one new data frame, by default removing a possible column 'time' if it exists. For use with 'summarise'.

average_timeseries(df, .cols = !tidyselect::starts_with("time"))

Arguments

df

A list of time series data frames. Expected column: 'new_time'

.cols

A tidy selection of columns to be included in the output (default: everything other than 'time')

Value

a data frame encapsulated in a list

Details

Expects a column 'new_time' as a reference. No input checks are done - if the input data frames do not have the same size or do not have the same 'new_time' index, no warning is thrown.