calc_log_return | R Documentation |
calc_log_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 takes the log.
calc_log_return(x)
x |
numeric vector |
Used in scripts: Robust function: TRUE
Vector of same length as x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.