h2o.scale | R Documentation |
Centers and/or scales the columns of an H2O dataset.
h2o.scale(x, center = TRUE, scale = TRUE, inplace = FALSE)
x |
An H2OFrame object. |
center |
either a |
scale |
either a |
inplace |
a |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.