wealth | R Documentation |
Converts an index series to a wealth series normalizing the starting value to one.
index2wealth(x)
x |
an object of class 'timeSeries'. |
returns a time series object of the same class as the input
argument x
normalizing the starting value to one.
returns
,
cumulated
,
drawdowns
,
splits
,
spreads
,
midquotes
,
## Load MSFT Open Prices -
INDEX <- MSFT[1:20, 1]
INDEX
## Compute Wealth Normalized to 100 -
100 * index2wealth(INDEX)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.