h2o.nlevels | R Documentation |
Get the number of factor levels for this frame.
h2o.nlevels(x)
x |
An H2OFrame object. |
nlevels
for the base R method.
## Not run:
library(h2o)
h2o.init()
f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/junit/cars_20mpg.csv"
cars <- h2o.importFile(f)
h2o.nlevels(cars)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.