Aggregate Time Series
Convert series to quarterly or annual.
1 2 3
a tframed object. (Only montly is currently working)
the function to use for aggregating.
Logical indicating if
a date which is used to determine the end of weeks.
the number of periods in a week.
additional arguments passed to
as.annually uses aggregate, but
shifts the data to match usual economic and
financial quarters or years (whereas aggregate simply groups together a number
of periods corresponding to the new frequency starting with the first
observation). These functions should give the same result as
aggregate if the data starts and ends on quarter (annual) boundaries.
If the data does not start and end on quarter (annual) boundaries
NA will be put in where
data is incomplete, and the quarter (year) removed if
Monthly to annual gives the aggregate by converting first to quarterly, which is not exactly correct.
To weekly by
periodicity groupings from
Partial weeks in the beginning or end are padded with
(as.weekly has been tested only with daily 7 day weeks.)
1 2 3 4 5 6 7 8 9