powered by
Internal Rate of Return of an irregular cashflow (IRR)
xirr(cf, d, interval = c(-1, 10), ...)
The cashflow
The dates when each cashflow occurs. Same length as the cashflow
A length 2 vector that indicates the root finding algorithm where to search for the irr
Other arguments to be passed on to uniroot
# NOT RUN { xirr(cf = c(-1, 1.5), d = Sys.Date() + c(0, 365)) # }
Run the code above in your browser using DataLab