Last data update: 2014.03.03
|
R: Net Present Value of an irregular cashflow (NPV)
Net Present Value of an irregular cashflow (NPV)
Description
Net Present Value of an irregular cashflow (NPV)
Usage
xnpv(i, cf, d)
Arguments
i |
The rate used to discount the cashflow. It must be an effective anual rate (EAR)
|
cf |
The cashflow
|
d |
The dates when each cashflow occurs. Same length as the cashflow
|
Examples
xnpv(i = 0.01, cf = c(-1, 0.5, 0.9), d = as.Date(c("2015-01-01", "2015-02-15", "2015-04-10")))
Results
|