xirr: The IRR is returned as an effective anual rate

Description Usage Arguments Examples

Description

Internal Rate of Return of an irregular cashflow (IRR)

Usage

1
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

1
xirr(cf = c(-1, 1.5), d = Sys.Date() + c(0, 365))

juancentro/tvm documentation built on May 20, 2019, 3:18 a.m.