timeseries_av | R Documentation |
This function reduces the number of time points in a data frame by averaging values from multiple time points.
timeseries_av(data, window = 5)
data |
A data frame with two columns: time and value. |
width |
Number of time/value pairs that will be averaged into one pair. |
timeseries_av(data = tibble(time = 1:100, value = rnorm(100)), window = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.