calculate_portfolio_return: calculate_portfolio_return

View source: R/calculate_portfolio_return.R

calculate_portfolio_returnR Documentation

calculate_portfolio_return

Description

Adds columns for cash before calculating the portfolio return.

Usage

calculate_portfolio_return(asset_units_xts, verbose = FALSE)

Arguments

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

Details

This is just a wrapper for PerformanceAnalytics::Return.portfolio(). See documentation for PerformanceAnalytics::Return.portfolio().

Value

See documentation for PerformanceAnalytics::Return.portfolio().


causality-loop/clhelpers documentation built on Aug. 31, 2022, 3:39 a.m.