powered by
Computes rolling sum over one year for monthly/quarterly data.
S(x, extend = TRUE)
Time series of annual sums with same frequency as input.
A ts object.
ts
If TRUE, pads result with NAs to match original length. Default is TRUE.