R/npv.R

Defines functions npv

Documented in npv

npv <-
function(x){
dctab <- data.frame(x)
sdcost <- sum(dctab[[1]]) 
sdbenefit <- sum(dctab[[2]])
npv <- sdbenefit - sdcost
signif(npv, 2)
}

Try the cban package in your browser

Any scripts or data that you put into this service are public.

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