na.contiguous
Find Longest Contiguous Stretch of non-NAs

Description

Finds the longest contiguous stretch of non-NA values.

Usage

na.contiguous(object, ...)
## Default S3 method:
na.contiguous(object, ...)
## S3 method for class 'ts':
na.contiguous(object, ...)

Arguments

object any object. Usually the object is a univariate or a multivariate time series.
... additional arguments to be passed to or from future functions.
Value
See Also
ts, na.action, na.omit.
Examples
x <- ts(c(11, 12, 13, NA, 15, 15, 16, 17), freq=4, start=2012.25)
na.contiguous(x)
Package stats version 6.1.4-13
Package Index