Description Usage Arguments Value See Also Examples
get the components and wgts of the specific index on certain day.
1 | getIndexCompWgt(indexID = "EI000300", endT, datasrc = defaultDataSRC())
|
indexID |
the stockID of the index |
endT |
a vector of class |
a dataframe, with cols: "date", "stockID","wgt".
Other getComps functions: getComps
,
getSectorComp
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.