Description Usage Arguments Value Examples
Functions to scrape and clean index constituent data from multiple sources for a given index.
Current src
methods available are: default.
Data is loaded silently without user assignment by default.
1 2 | getConstituents(index, env = .GlobalEnv, simple = TRUE, src = "default",
auto.assign = TRUE)
|
index |
character specifying the name of the index |
env |
where to create objects. Setting env=NULL is equal to auto.assign=FALSE. Defaults to .GlobalEnv |
simple |
should results include non-ticker data. If |
src |
character string specifying the source to retrieve the data from. As of 0.1-1,
the only source available is "default" which changes depending on the selected |
auto.assign |
should results be loaded to |
if auto.assign==FALSE
: a character vector of index
's constituents
if auto.assign==TRUE
: the name of the variable holding the data within the specified environment
1 2 3 | ## Not run:
getConstituents(index='S&P500')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.