Function File: npv (r, p, i)

Net present value of a series of payments.

Returns the net present value of a series of irregular (i.e., not necessarily identical) payments p which occur at the ends of n consecutive periods. r specifies the one-period interest rates and can either be a scalar (constant rates) or a vector of the same length as p.

The optional argument i may be used to specify an initial investment.

Note that the rate r is specified as a fraction (i.e., 0.05, not 5 percent).

See also: irr, pv.

Package: financial