Description Usage Arguments Value Examples
aggregates a time series to a new series with a smaller frequency
1 | jd_aggregate(s, newfreq, mode)
|
s |
source time series |
newfreq |
new frequency (e.g. 1 for annual, 4 for quarterly) |
mode |
optional, default="Sum" |
returns a 'ts' object
1 2 3 | myseries<-jd_airline(120)
myseriesAnnual<-jd_aggregate(myseries,1)
myseriesQuarterly<-jd_aggregate(myseries,4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.