View source: R/calcCumulatedDiscount.R
calcCumulatedDiscount | R Documentation |
Discount and cumulated a times series - gives the time series of the net present value (NPV). Baseyear for the NPV is the first period.
calcCumulatedDiscount(
data,
nameVar = "Consumption",
nameDisrate = "Interest Rate t/(t-1)|Real",
discount = 0.05,
fixYear = "none"
)
data |
a quitte object containing consumption values - consumption has to be named "Consumption" |
nameVar |
name of the variable to be cumulated (and discounted) |
nameDisrate |
Name of the variable containing the discount rate |
discount |
The discount rate: either a numeric value, or 'BAU' to choose the discount rate supplied in nameDisrate |
fixYear |
From the discounted time series, substract the value in year fixYear, if fixYear is not 'none' |
cumulated discounted values for each scenario, model, region (quitte object)
Anselm Schultes
## Not run:
erg <- calcCumulatedDiscount(data, disRate=0.03)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.