Learn R Programming

tvm (version 0.3.0)

xirr: The IRR is returned as an effective anual rate

Description

Internal Rate of Return of an irregular cashflow (IRR)

Usage

xirr(cf, d, interval = c(-1, 10), ...)

Arguments

cf

The cashflow

d

The dates when each cashflow occurs. Same length as the cashflow

interval

A length 2 vector that indicates the root finding algorithm where to search for the irr

...

Other arguments to be passed on to uniroot

Examples

Run this code
# NOT RUN {
xirr(cf = c(-1, 1.5), d = Sys.Date() + c(0, 365))
# }

Run the code above in your browser using DataLab