DescTools (version 0.99.11)

NPV: One Period Returns, Net Present Value and Internal Rate of Return

Description

Calculate the one period returns, the net present value (NPV) and internal rate of return (IRR) of a sequence of payments.

Usage

OPR(K, D = NULL, log = FALSE)
NPV(i, cf, t = seq(along = cf) - 1)
IRR(cf, t = seq(along = cf) - 1)

Arguments

i
the interest rate
cf
numeric vector with the payments
t
periods
K
the capital at time t
D
dividend at time t
log
logical, determining if the simple returns (default) or log returns are to be calculated.

Value

  • a numeric value

Details

The one period returns are calculated as $$r_t = \frac{D_t+K_t-K_t-1}{K_t-1}$$

See Also

Gmean

Examples

Run this code
cf <- c(-900, -250+450-90, 460-100, 500-120, 550-140)
IRR(cf)

Run the code above in your browser using DataCamp Workspace