calc_simple_return | R Documentation |
calc_simple_return
helper function for compute_return
.
Takes every element of x
except the first and divides by every
element of x
excep the last and subtracts one (1).
calc_simple_return(x)
x |
numeric vector |
Vector of same length as x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.