as.quarterly {tframePlus} | R Documentation |
Convert series to quarterly
as.quarterly (x, FUN=sum, na.rm=FALSE, ...)
x |
a tframed object. (Only montly is currently working) |
FUN |
the function to use for aggregating. |
na.rm |
Logical indicating if NA should be removed from the beginning and end of a series |
... |
additional arguments passed to aggregate |
This function uses aggregate, but shifts the data to match usualy economic and
financial quarters (whereas aggregate simply groups three months together
starting with the first). This function should give the same result as
aggregate if the data starts and ends on quarter boundaries. If the data does
not start and end on quarter boundaries then NA
will be put in where
data is incomplete, and the quarter removed if na.rm=TRUE
Depends