View source: R/indexnum_functions.R
Deflat | R Documentation |
Deflat
deflates a current value variable into a constant value variable.
Deflat(x, pervar, cvar, defl, base)
x |
Data frame containing, at least, the characteristics (time, location, ...), the current value and the deflator variables. |
pervar |
Character string for the name of the factor variable with the characteristics. |
cvar |
Character string for the name of the numeric variable with the current values. |
defl |
Character string for the name of the numeric variable with the index number used as deflator. |
base |
Character string for the name of the base characteristic. |
Deflat
returns a data frame with one column:
const_base |
The variable with constant values at base |
Sindex
, ComplexIN
, priceIndexNum
.
data(Depositos, package = "RcmdrPlugin.TeachStat")
Deflat(Depositos, "year", "quantity", "G_IPC_2016", "2018")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.