cumsum2 | R Documentation |
Performs the operation of integrating a time series (inverse of a difference). Allows seasonal integtation.
cumsum2(w, lag = 1, start)
w |
The input time series. |
lag |
Seasonal lag if a seasonal integration is desired. The default is lag=1. |
start |
Optional value that will be the base value. The degault is to use the first element of w. |
A time series.
ozone.xmat <- read.csv(RTseriesExtDataPath("ozoneRegdat.csv")) ozo.xreg <- cbind(ozone.xmat[,2], cumsum2(ozone.xmat[,3],12), cumsum2(ozone.xmat[,4],12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.