as.quarterly {tframePlus}R Documentation

Convert series to Quarterly

Description

Convert series to quarterly

Usage

    as.quarterly (x, FUN=sum, na.rm=FALSE, ...)

Arguments

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

Details

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

Value

Depends

See Also

tfwindow aggregate


[Package tframePlus version 2009.02-1 Index]