Learn R Programming

R4GoodPersonalFinances (version 1.2.0)

calc_portfolio_parameters: Calculate Portfolio Parameters

Description

Calculate Portfolio Parameters

Usage

calc_portfolio_parameters(portfolio)

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.

Arguments

portfolio

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

Examples

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

Run the code above in your browser using DataLab