Description Usage Arguments Value Note See Also
View source: R/aggregatetimeseries.R
Aggregate the metrics of a time series object over specified time intervals.
1 2 3 4 | AggregateTimeseries(obj, freq = c("weekly", "monthly"), ...)
## S3 method for class 'GeoTimeseries'
AggregateTimeseries(obj, freq, ...)
|
obj |
an object. |
freq |
(string) 'weekly' or 'monthly' aggregation. |
... |
further arguments passed to or from other methods. |
An object of the same class as 'obj'.
'Weekly' frequency: each day in the time series is mapped to the next Sunday, then aggregated.
'Monthly' frequency: each day in the time series is mapped to the last day of the month, then aggregated. No check is made about the current frequency. This works best on daily data. So it is possible to attempt to change a 'monthly' frequency back to 'weekly', but this simply re-maps the last day of the month to the next Sunday.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.