View source: R/aasim_functions.r
calcIRR | R Documentation |
Returns the IRR of a stream of cash flows. NA will be returned if there isn't at least one positive and one negative value. If the IRR is outside the range -99.99% to 10000%, NA is likely to be produced.
calcIRR(cashflows)
cashflows |
Vector of cash flows. These should include at least one positive and one negative value. |
Decimal IRR or NA.
## Not run: calcIRR(cashflows)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.