calc_portfolio_parameters: Calculate Portfolio Parameters

View source: R/calc_portfolio.R

calc_portfolio_parametersR Documentation

Calculate Portfolio Parameters

Description

Calculate Portfolio Parameters

Usage

calc_portfolio_parameters(portfolio)

Arguments

portfolio

A tibble of class Portfolio. Usually created using create_portfolio_template and customised.

Value

A list with the following elements:

  • value: The value of the portfolio.

  • weights: The weights of assets in the portfolio.

  • expected_return: The expected return of the portfolio.

  • standard_deviation: The standard deviation of the portfolio.

Examples

 portfolio <- create_portfolio_template()
 portfolio$accounts$taxable <- c(10000, 30000)
 calc_portfolio_parameters(portfolio)

R4GoodPersonalFinances documentation built on June 8, 2025, 11:18 a.m.