na.contiguous

0th

Percentile

Find Longest Contiguous Stretch of non-NAs

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

Usage
"na.contiguous"(object, ...)
Arguments
object
a timeSeries object.
...
further arguments passed to or from other methods.
Value

A timeSeries object without missing values.

Aliases
  • na.contiguous,timeSeries-method
Examples
library(timeSeries) ## Dummy timeSeries with NAs entries data <- matrix(sample(c(1:20, rep(NA,4))), ncol = 2) s <- timeSeries(data, timeCalendar()) ## Find the longest consecutive non-missing values na.contiguous(s)
Documentation reproduced from package timeSeries, version 3022.101.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.