trday.is: trday.is

Description Usage Arguments Value Author(s) Examples

Description

Identify if the date is trading day or not

Usage

1
trday.is(datelist, stockID = NULL, TS, drop)

Arguments

datelist

a vector of class Date

stockID

a character string or NULL If NULL, the market trading days, other wise the trading days of specific stock.

Value

a logical vecter with elements TRUE or FALSE depending on whether its argument is an tradingday

Author(s)

Ruifei.Yin

Examples

1
2
3
4
datelist <- seq(from=as.Date("2013-01-21"),to=as.Date("2013-01-30"),by="day")
trday.is(datelist)
trday.is(datelist,stockID="EQ000527")
trday.is(TS=TS)

QuantAndrew/QDataGet documentation built on May 14, 2019, 7:35 a.m.