normalize | R Documentation |
Normalize a vector to fit zero-to-one scale
normalize(x, min = 0, max = 1, na.rm = FALSE)
x |
a numeric vector |
min |
numeric value. The lower bound of the interval to normalize |
max |
numeric value. The upper bound of the interval to normalize |
na.rm |
a logical indicating whether missing values should be removed |
normalize(mtcars$mpg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.