Computing IRR, the internal rate of return
irr(cf)
cf
cash flow,the first cash flow is the initial outlay
pv.uneven
npv
# irr(cf=c(-5, 1.6, 2.4, 2.8))