Learn R Programming

FinCal (version 0.6.3)

npv: Computing NPV, the PV of the cash flows less the initial (time = 0) outlay

Description

Computing NPV, the PV of the cash flows less the initial (time = 0) outlay

Usage

npv(r, cf)

Arguments

r
discount rate, or the interest rate at which the amount will be compounded each period
cf
cash flow,the first cash flow is the initial outlay

See Also

pv.simple

pv.uneven

irr

Examples

Run this code
npv(r=0.12, cf=c(-5, 1.6, 2.4, 2.8))

Run the code above in your browser using DataLab