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

View source: R/frame.R

h2o.levelsR Documentation

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

Optional, the index of the column whose domain is to be returned.

See Also

levels for the base R method.

Examples

## Not run: 
library(h2o)
h2o.init()

iris_hf <- as.h2o(iris)
h2o.levels(iris_hf, 5)  # returns "setosa"     "versicolor" "virginica"

## End(Not run)

h2o documentation built on Aug. 9, 2023, 9:06 a.m.