scale2 {hacks} | R Documentation |
Scales a vector into numbers between zero and one.
scale2(x)
x |
A numeric vector. |
This function subtracts the minimum from the vector and then divides by the range of the vector. The result is a vector with a minimum of zero and a maximum of one. Missing values are ignored.
Nathan Stephens
scale2(rivers)