Last data update: 2014.03.03
|
R: Interpolation Functions for Irregular Time-Series Objects
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
|
Details
locf 'Last Observation Carry Forward'. NAs are replaced by the last preceding
valid observation within the series.
Value
An object of class "its" .
Author(s)
Giles Heywood
See Also
ts ,
POSIXct ,
itsFile ,
itsLags ,
itsJoin ,
itsTimes ,
itsSubset ,
itsFin ,
Examples
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))
Results
|