powered by
Range a variable into [0-1], assigning 0 to the min and 1 to the max of the input variable. All NA values will be removed.
range01(var)
vector with the values scaled into the 0 to 1 range
numeric input vector
range01(mtcars$cyl)
Run the code above in your browser using DataLab