evaluate | R Documentation |
Calculate the portfolio value as the sum of each asset portfolio quantity times the excess return of each asset with respect to the market.
evaluate_portfolio(portfolio, market_prices)
portfolio |
Data frame of the investor's portfolio at time t. |
market_prices |
Data frame containing the market prices. |
The portfolio value.
portfolio_compute
, gains_losses
,
closest_market_price
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.