itsCumdif {its}R Documentation

Cumulation, Differencing for Irregular Time-Series Objects

Description

Cumulation, differencing for objects of class "its".

Details

cumsum and diff perform the cumulative sum and difference of each column in turn. In diff, the first lag rows are discarded.

Value

An object of class "its"

Usage

cumsum(x) diff(x,lag=1)

Arguments

x
an object of class "its"
lag
an integer number of lags

Author(s)

Giles Heywood

See Also

ts, POSIXct, itsFile, itsLags itsJoin itsTimes itsSubset itsFin itsDisp itsInfo itsCumdif itsArith itsInterp

Examples

b <- newIts(1:60,ncol=3)
cumsum(b)
diff(b,lag=2)

[Package its version 1.1.1 Index]