powered by
Performs feature scaling such as Z-score and min-max scaling.
scaler(x, method = c("minmax", "zscore"), columns = NULL, na.rm = FALSE)
transformed version of x.
x
a numerical vector, a matrix or a data.frame.
vector
matrix
data.frame
a method to transfer x.
which columns are going to tranfer for the cases that x is a matrix or a data.frame. Defaults to all columns.
a logical value indicating whether NA values in x should be stripped before the computation proceeds.
Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie
zscore, minmax
zscore
minmax
x = c(2.3, -1.4, 0, 3.45) scaler(x, method = "minmax") scaler(x, method = "zscore")
Run the code above in your browser using DataLab