Last chance! 50% off unlimited learning
Sale ends in
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(object, …)
a univariate or multivariate time series.
further arguments passed to or from other methods.
A time series without missing values. The class of object
will
be preserved.
na.omit
and na.omit.ts
;
na.fail
# NOT RUN {
na.contiguous(presidents)
# }
Run the code above in your browser using DataLab