The formula is simply:
prices[length(prices)] / prices - 1. If
units.rate is specified, then it converts to x-unit growth rate.
Numeric matrix with 1 column of prices for each investment (can be a vector if there is only one).
Numeric value specifying the number of units for growth
rate calculation, if you want something other than total growth. For
annualized growth rate, set to 252 if
Numeric value if
prices is a vector, numeric matrix if
prices is a matrix.
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.