h2o (version 3.2.0.3)

h2o.levels: Return the levels from the column requested column.

Description

Return the levels from the column requested column.

Usage

h2o.levels(x, i)

Arguments

x
An H2OFrame object.
i
The index of the column whose domain is to be returned.

See Also

levels for the base R method.

Examples

Run this code
localH2O <- h2o.init()
iris.hex <- as.h2o(localH2O, iris)
h2o.levels(iris.hex, 5)  # returns "setosa"     "versicolor" "virginica"

Run the code above in your browser using DataCamp Workspace