calcIRR: Calculates the IRR of a stream of cash flow

View source: R/aasim_functions.r

calcIRRR Documentation

Calculates the IRR of a stream of cash flow

Description

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.

Usage

calcIRR(cashflows)

Arguments

cashflows

Vector of cash flows. These should include at least one positive and one negative value.

Value

Decimal IRR or NA.

Examples

## Not run: calcIRR(cashflows)

rexmacey/aasim documentation built on Oct. 29, 2024, 9:30 a.m.