View source: R/time_aggregate.R
time_aggregate | R Documentation |
The time series x
is aggregated by an integer factor n
.
time_aggregate(data, n = 2)
data |
|
n |
|
POSIXct
vector, aggregated data.
Michael Dietze
## load example data set
data(rockfall)
## aggregate time series
rockfall_t_agg <- time_aggregate(data = rockfall_t,
n = 2)
## compare results
range(rockfall_t)
diff(rockfall_t)
range(rockfall_t_agg)
diff(rockfall_t_agg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.