update.cf {financial} | R Documentation |
This function changes some data in cash flow model and recalculates it.
update.cf(object, flows = NULL, i = NULL, safe = NULL, rein = NULL, ...)
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. |
The function takes its first arguments, changing its given parameters, and returns recalculated model.
An object of class "cf", see link{cf}
.
Lukasz Komsta
y = cf(c(-2500,6250,-3800),1:10,2:11,4:13) y update(y,i=11:20)