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