View source: R/calculate_portfolio_return.R
calculate_portfolio_return | R Documentation |
Adds columns for cash before calculating the portfolio return.
calculate_portfolio_return(asset_units_xts, verbose = FALSE)
asset_units_xts |
xts, an xts of units to be joined to the asset returns to form a portfolio return |
verbose |
boolean, passed to PerformanceAnalytics::Return.portfolio(), Default: FALSE |
This is just a wrapper for PerformanceAnalytics::Return.portfolio(). See documentation for PerformanceAnalytics::Return.portfolio().
See documentation for PerformanceAnalytics::Return.portfolio().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.