View source: R/tD_subordinates.R
min_max_norm | R Documentation |
Title: Min-Max normalization of attributes that require normalization
min_max_norm(x)
x |
A single value from an attribute passed in the function for normalization. |
A normalized value (value between 1 and 0)
lapply is needed to apply the function across several columns in a data set.
Tingwei Adeck (Adapted from Statology)
https://www.statology.org/how-to-normalize-data-in-r/
test_df <- as.data.frame(c(seq(40)))
colnames(test_df) <- "test"
test_df_norm <- lapply(test_df[1:ncol(test_df)], min_max_norm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.