scaler {liver} | R Documentation |
Feature scaling
Description
Performs feature scaling such as Z-score and min-max scaling.
Usage
scaler(x, scale = c("minmax", "zscore"), col = "auto",
par1 = NULL, par2 = NULL, na.rm = FALSE)
Arguments
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 |
Value
transformed version of x
.
Author(s)
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
See Also
Examples
x = c(2.3, -1.4, 0, 3.45)
scaler(x, scale = "minmax")
scaler(x, scale = "zscore")