Description Usage Arguments See Also Examples
This function is the same as irr but can calculate negative value. This function may take a very long time. You can use larger cutoff and larger step to get a less precision irr first. Then based on the result, change from and to, to narrow down the interval, and use a smaller step to get a more precision irr.
1 |
cf |
cash flow,the first cash flow is the initial outlay |
cutoff |
threshold to take npv as zero |
from |
smallest irr to try |
to |
largest irr to try |
step |
increment of the irr |
1 2 | # irr2(cf=c(-5, 1.6, 2.4, 2.8))
# irr2(cf=c(-200, 50, 60, -70, 30, 20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.