update.tvm: Update time value of money model

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Changes something declared in TVM model and recalculates NA values.

Usage

1
2
3
## S3 method for class 'tvm'
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.

Details

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

Value

An updated object of "tvm" class, see tvm

Author(s)

Lukasz Komsta

See Also

tvm

Examples

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

financial documentation built on May 30, 2017, 2:35 a.m.