View source: R/data_preparation.R
range01 | R Documentation |
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)
var |
numeric input vector |
vector with the values scaled into the 0 to 1 range
range01(mtcars$cyl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.