irr: The IRR is returned as an effective rate with periodicity...

Description Usage Arguments Examples

View source: R/CfFuncs.R

Description

Internal Rate of Return of a periodic cashflow (IRR)

Usage

1
2
irr(cf, ts = seq(from = 0, by = 1, along.with = cf), interval = c(-1, 10),
  ...)

Arguments

cf

The cashflow

ts

The times on which the cashflow ocurrs. It is assumed that cf[idx] happens at moment ts[idx]

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
irr(cf = c(-1, 0.5, 0.9), ts = c(0, 1, 3))

Example output

[1] 0.1641207

tvm documentation built on May 29, 2017, 11:02 a.m.