update.cf {financial}R Documentation

Update a cash flow model

Description

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

Usage

update.cf(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.

Details

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

Value

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

Author(s)

Lukasz Komsta

See Also

cf

Examples

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

[Package financial version 0.1 Index]