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

Description Usage Arguments Details Value See Also

View source: R/rebalancing.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
	rebalance(obj,start.t,...)
	## Default S3 method:
rebalance(obj,start.t,...)
	## S3 method for class 'account'
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.

Details

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

Value

an account object

See Also

summary.account rebal.function.default


gsk3/maRketSim documentation built on May 17, 2019, 8:55 a.m.