Learn R Programming

maRketSim (version 0.9.2)

rebalance.account: Functions to rebalance accounts. Called by summary.account

Description

In general, you should use summary.account to call these functions. They rebalance an account according to rules specified in the given rebal.function, increment the time period by one, and track any interest payments and sale profits.

Usage

rebalance(obj,start.t,...) "rebalance"(obj,start.t,...) "rebalance"(obj, start.t, rebal.function = rebal.function.default, f, rebal.function.args = list(), ...)

Arguments

obj
account object
rebal.function
Function which actually handles the rebalancing. See rebal.function.default for an example, or write your own.
start.t
Start time
f
Frequency of coupon payments
rebal.function.args
Arguments to pass to rebal.function, as a list
...
Pass-alongs.

Value

an account object

Details

Call from summary.account. These functions are at the heart of what makes this package useful.

See Also

summary.account rebal.function.default