# Currently still in beta, so don't automatically run example
\dontrun{
library(h2o)
localH2O = h2o.init()
iris.hex <- as.h2o(localH2O, iris)
gs <- h2o.gapStatistic(iris.hex, K = 10, B = 10)
gs # default show displays number of KMeans run and the optimal k
summary(gs) # gives all model information computed
plot(gs) # shows various plots
}
Run the code above in your browser using DataLab