is_component: is component of specific sector or index?

Description Usage Arguments Value Examples

Description

is component of specific sector or index?

Usage

1
2
is_component(TS, stockID, endT = Sys.Date(), sectorID, drop = FALSE,
  datasrc = defaultDataSRC())

Arguments

TS
stockID
endT
sectorID

a character string. The ID of the index, sector or plate. See detail in getComps

drop
datasrc

Value

a dataframe or a vector(if drop==TRUE)

Examples

1
2
3
4
is_component(stockID = c("EQ000001","EQ300089"),sectorID = "EI000300",drop=TRUE)
is_component(stockID = c("EQ000001","EQ300089"),sectorID = "ES09440000")
TS <- getTS(as.Date(c("2014-01-01","2016-01-01")),indexID = "EI000906")
re <- is_component(TS,sectorID = "EI000300")

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