R: Count distance since an NA has occurred

since.na {fts} | R Documentation

## Count distance since an NA has occurred

### Description

Count number of rows since an NA has occurred

### Usage

    since.na(x)

### Arguments

`x` | An Fts object

### Value

an Fts object

### Author(s)

Whit Armstrong

### Examples

    x <- fts(index=seq(from=Sys.Date(),by="days",length.out=100),rnorm(100))

    x[10,] <- NA

    since.na(x)

[Package fts version 0.9.9.2 Index]