Learn R Programming

maRketSim (version 0.9.2)

aa: Functions to return the proportion of the portfolio in each asset class

Description

Returns the proportion of the portfolio in each asset class

Usage

aa(x, ...) "aa"(x, ...) "aa"(x, sort = TRUE, force.cash = TRUE, ...)

Arguments

x
Object, typically an account object.
sort
Sort alphabetically by class name
force.cash
If TRUE, add a cash asset class if none present in account.
...
Pass-alongs.

Value

Numeric vector of proportions

Details

Return the proportion of the portfolio in each asset class