npv: Net Present Value of a periodic cashflow (NPV)

Description Usage Arguments Value Examples

View source: R/CfFuncs.R

Description

Net Present Value of a periodic cashflow (NPV)

Usage

1
npv(i, cf, ts = seq(from = 0, by = 1, along.with = cf))

Arguments

i

The rate used to discount the cashflow. It must be effective and with a periodicity that matches that of the cashflow

cf

The cashflow

ts

The times on which the cashflow ocurrs. It is assumed that cf[idx] happens at moment ts[idx]. If empty, assumes that cf[idx] happens at period idx - 1

Value

The net present value at

Examples

1
npv(i = 0.01, cf = c(-1, 0.5, 0.9), ts = c(0, 1, 3))

tvm documentation built on May 29, 2017, 11:02 a.m.

Search within the tvm package
Search all R packages, documentation and source code