compute_annualized_return | R Documentation |
Compute annualized return based on daily returns for vector
compute_annualized_return(R, scale = 252)
R |
An xts or vector with returns |
scale |
A numeric for the number of periods in a year (daily = 252 is default, monthly = 12, quarterly = 4, yearly = 1) |
A vector with annualized returns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.