event.dates: Extract Dates

Description Usage Arguments Details Value Author(s) Examples

View source: R/fts.R

Description

Extract the dates from a one column LOGICAL Fts object where value is TRUE

Usage

1

Arguments

x

An Fts object

Details

removes NA values before extracting dates

Value

a vector of dates

Author(s)

Whit Armstrong

Examples

1
2
3
4
5
6
7
x <- fts(index=seq(from=Sys.Date(),by="days",length.out=100),data=rnorm(100))
x.bool <- x > 10
event.dates(x.bool)

## ignores NA's
x.bool[10:20] <- NA
event.dates(x.bool)

fts documentation built on May 29, 2017, 10:14 p.m.

Search within the fts package
Search all R packages, documentation and source code