Annual sum
S
generates the annual sum of a monthly or quarterly time series.
S(x, extend = TRUE)
x
: an ts
object.extend
: logical. If TRUE, the transformed series is extended with NA's to have the same length as the origianl series.The transformed time series, a ts
object.