Description Usage Arguments Value Examples
View source: R/summary_stats.R
This function generates a time series of log-returns and while requiring as an input a time series of prices. In the end, the return scaled to an annual return by multplying it by 252.
1 | averagereturn(backtest)
|
backtest |
A |
A numeric
output giving the average annualized return as a
decimal number.
1 2 | averagereturn(backtest = as.matrix(EuStockMarkets[, 1]))
averagereturn(backtest = as.data.frame(EuStockMarkets[, 2]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.