irr | R Documentation |
Rate at which all cashflows will be discounted to exactly zero.
irr(
cashflows,
dates,
method = "compound",
convention = "ACT/365",
silent = FALSE
)
cashflows |
Cash flows, as a vector. |
dates |
Value dates for the cashflows vector. |
method |
Compound or simple interest? Default is compound. |
convention |
Interest rate convention; default is "ACT/365". |
silent |
Should warning messages be suppressed? Default is no. |
IRR as a fraction, per annum basis; recognized interval is -50% – +150% p.a.
npv, dcf
irr(
dates = as.Date(c("2019-01-01", "2020-01-01")),
cashflows = c(-1000, 1100)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.