getIndexCompWgt: getIndexCompWgt

Description Usage Arguments Value See Also Examples

Description

get the components and wgts of the specific index on certain day.

Usage

1
getIndexCompWgt(indexID = "EI000300", endT, datasrc = defaultDataSRC())

Arguments

indexID

the stockID of the index

endT

a vector of class Date. IF missing, then get the latest components.

Value

a dataframe, with cols: "date", "stockID","wgt".

See Also

Other getComps functions: getComps, getSectorComp

Examples

1
2
3
tmp <- getIndexCompWgt("EI000300") # get the latest components
tmp <- getIndexCompWgt("EI000985",as.Date("2012-12-31")) # get the components on single day
tmp <- getIndexCompWgt("EI000300",as.Date(c("2011-12-31","2012-12-31"))) # get the components on multi-days

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