make_portfolio: Create a portfolio

Description Usage Arguments Value

Description

Creates a portfolio of holdings and the amount held.

Usage

1
2
3
4
5
6
7
make_portfolio(asset_names, assets, amounts)

get_assets(portfolio)

get_amounts(portfolio)

get_total(portfolio)

Arguments

asset_names

a vector of strings identifying each holding

assets

a vector of asset objects

amounts

a vector of the dollar amount held for each holding

portfolio

the portfolio to return information from

Value

a new portfolio object


ryanholbrook/investmentsim documentation built on Nov. 5, 2019, 5:10 a.m.