normalize | R Documentation |
Normalizes a vector of values to a range of 0-1 x - min(x)) / (max(x) - min(x)
normalize(x, newlims = c(0, 1))
x |
Vector of values |
newlims |
numeric vector of new minimum and maximum eg. c(2,4) |
Normalized vector of values to newmax and newmin
normalize(mtcars$mpg) normalize(mtcars$mpg, c(5, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.