itsCumdif {its} | R Documentation |
Cumulation, differencing for objects of class "its"
.
cumsum
and diff
perform the cumulative sum and difference of each
column in turn. In diff
, the first lag
rows are discarded.
An object of class "its"
cumsum(x) diff(x,lag=1)
"its"
Giles Heywood
ts
,
POSIXct
,
itsFile
,
itsLags
itsJoin
itsTimes
itsSubset
itsFin
itsDisp
itsInfo
itsCumdif
itsArith
itsInterp
b <- newIts(1:60,ncol=3) cumsum(b) diff(b,lag=2)