Description Usage Arguments Examples

Internal Rate of Return of an irregular cashflow (IRR)

1 |

`cf` |
The cashflow |

`d` |
The dates when each cashflow occurs. Same length as the cashflow. Only used if tau is NULL. Assumes act/365 fractions |

`tau` |
The year fractions when each cashflow occurs. Same length as the cashflow |

`comp_freq` |
The compounding frequency used. Most relevant cases are 1 for yearly, 2 twice a year, 4 quarterly, 12 monthly, 0 no compounding, Inf continuous |

`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 |

1 |

```
[1] 0.5000108
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.