Learn R Programming

brfinance (version 0.8.0)

calc_irr: Internal Rate of Return (IRR)

Description

Calculates the internal rate of return of a series of cash flows.

Usage

calc_irr(cashflows, guess = 0.1)

Value

Internal rate of return.

Arguments

cashflows

Vector of cash flows (first is typically negative investment).

guess

Initial guess for IRR (default = 0.1).

Examples

Run this code
calc_irr(cashflows = c(-1000, 300, 400, 500))

Run the code above in your browser using DataLab