na.contiguous {stats} | R Documentation |
Find the longest consecutive stretch of non-missing values in a time series object. (In the event of a tie, the first such stretch.)
na.contiguous(frame)
frame |
a univariate or multivariate time series. |
A time series without missing values. The class of frame
will
be preserved.
na.omit
and na.omit.ts
;
na.fail
data(presidents) na.contiguous(presidents)