getGrowth1Dollar | R Documentation |
Calculates the growth of $1 from the rates of returns in the trials specified by idxVec.
getGrowth1Dollar(sim, simResult, idxVec)
sim |
Simulation object. |
simResult |
Name of item in sim with results (class = 'simResult') |
idxVec |
Vector of one or more indices representing a trial. |
Data frame. The number of row will be one more than the longest length of the trials. The first column is the year and each subsequent column is the growth of $1 for each element in idxVec.
## Not run: getGrowth1Dollar(sim, simResult, c(1, 2, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.