irr | R Documentation |
Internal Rate of Return of a periodic cashflow (IRR)
irr(cf, ts = seq(from = 0, by = 1, along.with = cf), interval = c(-1, 10), ...)
cf |
The cashflow |
ts |
The times on which the cashflow occurs. It is assumed that |
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 |
irr(cf = c(-1, 0.5, 0.9), ts = c(0, 1, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.