[R] Internal NA removal out of Time Series with na.omit.ts()
Jan Verbesselt
Jan.Verbesselt at agr.kuleuven.ac.be
Fri Mar 5 13:50:15 CET 2004
Hi R specialists,
The na.omit.ts() method fails when the time series contains internal
NA's. How can these automatically be removed?
> spectrum(ts.mNDII, na.action=na.omit)
Error in na.omit.ts(as.ts(x)) : time series contains internal NAs
How can the na.action be activated correctly?
> acf(ts.Lin, type=c("correlation"), na.action=na.omit)
Error in na.omit.ts(as.ts(x)) : time series contains internal NAs
((ts.Lin contains two time series, where one contains internal NAs
(-->an NA not a the end/beginning of a time serie)))
Thanks a lot!
Jan Verbesselt
More information about the R-help
mailing list