normalization | R Documentation |
Normalize numeric vector
normalization(x, method = "max_min", na_rm = TRUE)
x |
Input numeric vector. |
method |
Method used for normalization. |
na_rm |
Whether to remove |
Normalized numeric vector
nums <- c(runif(2), NA, -runif(2))
nums
normalization(nums, method = "max_min")
normalization(nums, method = "maximum")
normalization(nums, method = "sum")
normalization(nums, method = "softmax")
normalization(nums, method = "z_score")
normalization(nums, method = "mad")
normalization(nums, method = "unit_vector")
normalization(nums, method = "unit_vector", na_rm = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.