Description Usage Arguments Value Examples

Calculates prices based on initial balance and vector of gains.

1 | ```
gains_prices(gains, initial = 10000)
``` |

`gains` |
Numeric matrix with 1 column of gains for each investment (can be a vector if there is only one). |

`initial` |
Numeric value. |

Numeric value if `gains`

is a vector, numeric matrix if
`gains`

is a matrix.

1 2 3 4 5 6 7 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.