powered by
Normalize a vector to fit zero-to-one scale
normalize(x, min = 0, max = 1, na.rm = FALSE)
a numeric vector
numeric value. The lower bound of the interval to normalize x.
x
numeric value. The upper bound of the interval to normalize x.
a logical indicating whether missing values should be removed
# NOT RUN { normalize(mtcars$mpg) # }
Run the code above in your browser using DataLab