scaler {liver} | R Documentation |
Feature scaling
Description
Performs feature scaling such as Z-score and min-max scaling.
Usage
scaler(x, method = c("minmax", "zscore"), columns = NULL, na.rm = FALSE)
Arguments
x |
a numerical |
method |
a method to transfer |
columns |
which columns are going to tranfer for the cases that |
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, method = "minmax")
scaler(x, method = "zscore")
[Package liver version 1.18 Index]