h2o.scale {h2o} | R Documentation |
Scaling and Centering of an H2OFrame
Description
Centers and/or scales the columns of an H2O dataset.
Usage
h2o.scale(x, center = TRUE, scale = TRUE, inplace = FALSE)
Arguments
x |
An H2OFrame object. |
center |
either a |
scale |
either a |
inplace |
a |
Examples
## Not run:
library(h2o)
h2o.init()
iris_hf <- as.h2o(iris)
summary(iris_hf)
# Scale and center all the numeric columns in iris data set
iris_scaled <- h2o.scale(iris_hf[, 1:4])
## End(Not run)
[Package h2o version 3.44.0.3 Index]