update.cf: Update a cash flow model

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

Description

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

Usage

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

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

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

Example output

Cash Flow Model

Flows:
    1     2     3 
-2500  6250 -3800 

 IRR%: 4.38 45.62 
 NPV Extremes at I%: 21.6 

   Safe% Rein% MIRR%
1      2     4  2.79
2      3     5  3.88
3      4     6  4.96
4      5     7  6.05
5      6     8  7.12
6      7     9  8.20
7      8    10  9.27
8      9    11 10.34
9     10    12 11.40
10    11    13 12.46

   I%    NPV    NFV    NUS
1   1 -37.01 -37.75 -18.78
2   2 -24.99 -26.00 -12.87
3   3 -13.90 -14.75  -7.27
4   4  -3.70  -4.00  -1.96
5   5   5.67   6.25   3.05
6   6  14.24  16.00   7.77
7   7  22.05  25.25  12.20
8   8  29.15  34.00  16.35
9   9  35.56  42.25  20.22
10 10  41.32  50.00  23.81

Cash Flow Model

Flows:
    1     2     3 
-2500  6250 -3800 

 IRR%: 4.38 45.62 
 NPV Extremes at I%: 21.6 

   Safe% Rein% MIRR%
1      2     4  2.79
2      3     5  3.88
3      4     6  4.96
4      5     7  6.05
5      6     8  7.12
6      7     9  8.20
7      8    10  9.27
8      9    11 10.34
9     10    12 11.40
10    11    13 12.46

   I%   NPV    NFV   NUS
1  11 46.47  57.25 27.13
2  12 51.02  64.00 30.19
3  13 55.02  70.25 32.98
4  14 58.48  76.00 35.51
5  15 61.44  81.25 37.79
6  16 63.91  86.00 39.81
7  17 65.93  90.25 41.59
8  18 67.51  94.00 43.12
9  19 68.67  97.25 44.41
10 20 69.44 100.00 45.45

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