data(cycling_data)
# Smooth power data with a 30 second moving average.
rollmean_smth(cycling_data, power.W, 30)
# Or alternatively, use an exponentially weighted moving average.
rollmean_smth(cycling_data, power.W, 30, ema = TRUE)Run the code above in your browser using DataLab