apply_minmax_scale {dynutils} | R Documentation |
Anything outside the range of [0, 1] will be set to 0 or 1.
apply_minmax_scale(x, addend, multiplier)
x |
A numeric vector, matrix or data frame. |
addend |
A minimum vector for each column |
multiplier |
A scaling vector for each column |
The scaled matrix or verctor. The numeric centering and scalings used are returned as attributes.