Learn R Programming

fts (version 0.9.9.2)

since.na: 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

Examples

Run this code
# NOT RUN {
x <- fts(index=seq(from=Sys.Date(),by="days",length.out=100),rnorm(100))

x[10,] <- NA

since.na(x)
# }

Run the code above in your browser using DataLab