Description Usage Arguments Value Examples
Function to compute an Index given the prices and weights
1 | compute_index(prices, weights)
|
prices |
component's prices, in currency (€, $, ...) per share |
weights |
component's weights, in number of shares |
the index value given the prices and weights.
1 2 | myIndex <- compute_index(c(1.50, 2.22, 3.88, 10.66),
c(654, 543, 123, 10))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.