scaler | R Documentation |
Performs feature scaling such as Z-score and min-max scaling.
scaler(x, scale = c("minmax", "zscore"), col = "auto",
par1 = NULL, par2 = NULL, na.rm = FALSE)
x |
a numerical |
scale |
a transfer for |
col |
a character vector of column names or indices. If |
par1 |
a numerical value or vector that for the case |
par2 |
a numerical value or vector that for the case |
na.rm |
a logical value indicating whether NA values in |
transformed version of x
.
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
zscore
, minmax
x = c(2.3, -1.4, 0, 3.45)
scaler(x, scale = "minmax")
scaler(x, scale = "zscore")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.