Learn R Programming

FinancialMath (version 0.1.1)

IRR: Internal Rate of Return

Description

Calculates internal rate of return for a series of cash flows, and provides a time diagram of the cash flows.

Usage

IRR(cf0,cf,times,plot=FALSE)

Arguments

cf0
cash flow at period 0
cf
vector of cash flows
times
vector of the times for each cash flow
plot
option whether or not to provide the time diagram

Value

Details

$cf0=\sum_{k=1}^n\frac{cf_k}{(1+irr)^{times_k}}$

See Also

NPV

Examples

Run this code

IRR(cf0=100,cf=c(1,1,30,40,50,1),times=c(1,1,3,4,5,6))

Run the code above in your browser using DataLab