npv: Net Present Value

Description Usage Arguments Details Value Author(s) Examples

View source: R/npv.R

Description

It calculates the net present value of a project in financial terms.

Usage

1
npv(x)

Arguments

x

a data frame or list containing of variables: discounted cost and discounted benefit in that order.

Details

The function specifically targets the second list component returned by the function bcr as its argument but can use other data frame or list of discounted cost and discounted benefit. Net present value is also a method of cost nenefit analysis.

Value

returns a double or integer

Author(s)

Abubakar Akanbi

Examples

1
2
3
4
5
tb = data.frame(cost=c(2500, 28000,15800.50), benefit=c(2600.95,30600,16200.50), rate =
c(4,4,4.2), no.of.years=c(1,1,1))
bc = bcr(tb)
bc = bc[2]
pv = npv(bc)

cban documentation built on Dec. 7, 2020, 5:06 p.m.