n_scaled {COINr} | R Documentation |
Scales a vector for normalisation using the method applied in the GII2020 for some indicators. This
does x_scaled <- (x-l)/(u-l) * 100
. Note this is not the minmax transformation (see n_minmax()
).
This is a linear transformation with shift u
and scaling factor u-l
.
n_scaled(x, npara = c(0, 100))
x |
A numeric vector |
npara |
Parameters as a vector |
Scaled vector
x <- runif(20)
n_scaled(x, npara = c(1,10))