annualizer | R Documentation |
annualizer
computes time-averaged quantities based on linear interpolation.
annualizer(timevec, benefits)
timevec |
numeric vector of time intervals. |
benefits |
numeric vector of values to be interpolated. |
A time-averaged value over the specified time horizon.
Robinson R., Hansen W., and Orth K. 1995. Evaluation of environmental investments procedures manual interim: Cost effectiveness and incremental cost analyses. IWR Report 95-R-1. Institute for Water Resources, U.S. Army Corps of Engineers, Alexandria, Virginia.
#Constant value through time
annualizer(c(0,50), c(100,100))
annualizer(seq(0,50), rep(100,51))
#Simple time series
annualizer(seq(0,50), seq(0,50))
#User-specified time intervals
demo.timevec <- c(0,2,20,50)
demo.ben <- c(0,100,90,80)
annualizer(demo.timevec, demo.ben)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.