n_minmax {COINr} | R Documentation |
Minmax a vector
Description
Scales a vector using min-max method.
Usage
n_minmax(x, l_u = c(0, 100))
Arguments
x |
A numeric vector |
l_u |
A vector |
Details
This function also supports parameter specification in iMeta
for the Normalise.coin()
method.
To do this, add columns minmax_lower
, and minmax_upper
to the iMeta
table, which specify the
lower and upper bounds to scale each indicator to. Then set f_n_para = "use_iMeta"
within the
global_specs
list. See also examples in the normalisation vignette.
Value
Normalised vector
Examples
x <- runif(20)
n_minmax(x)
[Package COINr version 1.1.14 Index]