#' @title make_rets_xts
#' @description Makes an xts of returns from a string of symbols.
#' @param asset_symbols character, a string of asset_symbols
#' @param n integer, passed to utils::tail(), Default: 430
#' @param ret_periodicity character, the return periodicity which is passed to `xts::endpoints()`, Default: 'days'
#' @return An xts of asset returns.
#' @export
make_rets_xts <- function(asset_symbols, n = 430, ret_periodicity = 'days')
{
calculate_returns(make_closes_xts(asset_symbols, n, ret_periodicity))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.