maxmin | R Documentation |
This function allows you to scale vectors or an entire data frame using the max-min scaling method A numeric vector is always returned.
maxmin(x)
x |
Pass a vector or the required columns of a data frame through this argument. |
library(magrittr)
library(dplyr)
rand <- rnorm(100, mean = 0, sd = 1)
data.frame(original = rand, transformed = maxmin(rand))
iris %>% mutate(Petal.Length2 = maxmin(Petal.Length))
maxmin(iris$Petal.Length)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.