Description Usage Arguments Value Additional Usage Author(s) Examples
A wrapper around equity indices.
1 |
... |
Used by lambda.r |
An EquityIndex object
TODO: Consolidate with BenchmarkPortfolio
This type takes an index and will download all constituent returns (assuming the index composition exists). This uses quantmod as a back-end.
EquityIndex(ticker = "^GSPC", hint = NA, src = "yahoo")
ticker - The ticker representing the index
hint - Used to determine number of elements in index for paging
src - Placeholder for data source. Currently only supports yahoo
Brian Lee Yung Rowe
1 | ## Not run: index <- EquityIndex()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.