View source: R/data_manipulation_fcts.R
calc_ret | R Documentation |
Calculates a return vector
calc_ret(P, tickers = rep("ticker", length(P)))
P |
Vector of prices |
tickers |
Vector of tickers |
A vector of returns
print(afedR_calc_ret(1:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.