is_suspend: is_suspend

Description Usage Arguments Author(s) Examples

Description

is_suspend

is_suspend

Usage

1
2
3
4
5
is_suspend(TS, nearby = 0, datelist, stockID, drop,
  datasrc = defaultDataSRC())

is_suspend(TS, nearby = 0, datelist, stockID, drop,
  datasrc = defaultDataSRC())

Arguments

nearby

a integer vector. 0 means today, 1 means next tradingday. default is 0L. see detail in trday.nearby.

nearby

a integer vector. 0 means today, 1 means next tradingday. default is 0L. see detail in trday.nearby.

Author(s)

Ruifei.yin

Ruifei.yin

Examples

1
2
3
4
5
6
7
8
RebDates <- getRebDates(as.Date('2013-03-17'),as.Date('2016-04-17'),'month')
TS <- getTS(RebDates,'EI000985')
re <- is_suspend(TS) #  Suspend of nextday
re1 <- is_suspend(TS,nearby=c(0,1))#  Suspend of today and nextday
RebDates <- getRebDates(as.Date('2013-03-17'),as.Date('2016-04-17'),'month')
TS <- getTS(RebDates,'EI000985')
re <- is_suspend(TS) #  Suspend of nextday
re1 <- is_suspend(TS,nearby=c(0,1))#  Suspend of today and nextday

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