na.contiguous

0th

Percentile

Find Longest Contiguous Stretch of non-NAs

Find the longest consecutive stretch of non-missing values in a time series object. (In the event of a tie, the first such stretch.)

Keywords
ts
Usage
na.contiguous(object, ...)
Arguments
object
a univariate or multivariate time series.
...
further arguments passed to or from other methods.
Value

A time series without missing values. The class of object will be preserved.

See Also

na.omit and na.omit.ts; na.fail

Aliases
  • na.contiguous
  • na.contiguous.default
Examples
library(stats) na.contiguous(presidents)
Documentation reproduced from package stats, version 3.1.1, License: Part of R 3.1.1

Community examples

Looks like there are no examples yet.