This function rescales a numeric vector using the min-max normalization technique,
which linearly transforms the values to a new range specified by the a and
b arguments. The minimum value in the original vector is mapped to a, and
the maximum value is mapped to b.
Arguments
- x
A numeric vector.
- a
The minimum value of the new range (default: 0).
- b
The maximum value of the new range (default: 1).
- drop.na
A logical value indicating whether to remove missing values (NA) from the calculations. If
TRUE(the default), missing values will be removed. IfFALSE, missing values will be included.
