powered by
Calculate Portfolio Parameters
calc_portfolio_parameters(portfolio)
A list with the following elements:
value: The value of the portfolio.
value
weights: The weights of assets in the portfolio.
weights
expected_return: The expected return of the portfolio.
expected_return
standard_deviation: The standard deviation of the portfolio.
standard_deviation
A tibble of class Portfolio. Usually created using create_portfolio_template and customised.
tibble
Portfolio
create_portfolio_template
portfolio <- create_portfolio_template() portfolio$accounts$taxable <- c(10000, 30000) calc_portfolio_parameters(portfolio)
Run the code above in your browser using DataLab