its (version 1.0.3)

itsInterp: Interpolation Functions for Irregular Time-Series Objects

Description

Interpolation functions for objects of class "its".

Usage

locf(x)

Arguments

x
an object of class "its" or NULL

Value

  • An object of class "its".

Details

locf 'Last Observation Carry Forward'. NAs are replaced by the last preceding valid observation within the series.

See Also

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

Examples

Run this code
x <- newIts(11:40,ncol=3)
x[1:2,1] <- NA
x[3:4,2] <- NA
x[9:10,3] <- NA
print(x)
print(locf(x))

Run the code above in your browser using DataLab