npv: Net Present Value of a cashflow (NPV)
Description
Net Present Value of a cashflow (NPV)Usage
npv(i, cf, t = seq(from = 0, by = 1, along.with = cf))
Arguments
i
The rate used to discount the cashflow. It must
be effective and with a periodicity that matches that of
the cashflow
t
The times on which the cashflow ocurrs. It is
assumed that cf[idx]
happens at moment
t[idx]