financial (version 0.2)

update.cf: Update a cash flow model

Description

This function changes some data in cash flow model and recalculates it.

Usage

"update"(object, flows = NULL, i = NULL, safe = NULL, rein = NULL, ...)

Arguments

object
an object of "cf" class, created by cf function.
flows
new updated flows.
i
a vector of new updated periodic rates.
safe
a vector of new updated safe MIRR rates.
rein
a vector of new updated reinvestment MIRR rates.
...
additional arguments, currently ignored.

Value

An object of class "cf", see link{cf}.

Details

The function takes its first arguments, changing its given parameters, and returns recalculated model.

See Also

cf

Examples

Run this code
y = cf(c(-2500,6250,-3800),1:10,2:11,4:13)
y
update(y,i=11:20)

Run the code above in your browser using DataCamp Workspace