financial (version 0.2)

update.tvm: Update time value of money model

Description

Changes something declared in TVM model and recalculates NA values.

Usage

"update"(object, i = NULL, n = NULL, pv = NULL, fv = NULL, pmt = NULL, days = NULL, adv = NULL, pyr = NULL, cyr = NULL, ...)

Arguments

object
an object of "tvm" class used to update.
i
a vector of nominal rates, as percentages.
n
a vector of period numbers.
pv
a vector of present values.
fv
a vector of future values.
pmt
a vector of payments.
days
a vector of days from begin of period to make payment. Default value is equivalent to END mode, 0 means BEGIN mode.
adv
a vector of numbers of payments made in advance.
pyr
a vector of numbers of payments per year.
cyr
a vector of numbers of compounding periods per year.
...
additional arguments, currently ignored.

Value

An updated object of "tvm" class, see tvm

Details

NA values must be REDECLARED in updating process, because TVM object cannot remember what parameters were NA!

See Also

tvm

Examples

Run this code
y=tvm(pv=10000,i=1:10,n=10,pmt=NA)
update(y,pmt=-1000,n=NA)

Run the code above in your browser using DataLab