Learn R Programming

h2o (version 2.8.4.4)

levels: Levels of Categorical Data

Description

Returns a list of the unique values found in a column of categorical data.

Usage

levels(x)

Arguments

x
Column of categorical data in an H2OParsedData object.

Value

  • Returns a list containing one entry for each unique value found in the column of categorical data.

Examples

Run this code
library(h2o)
localH2O = h2o.init()
irisPath = system.file("extdata", "iris.csv", package="h2o")
iris.hex = h2o.importFile(localH2O, path = irisPath, key = "iris.hex")
levels(iris.hex[,5])

Run the code above in your browser using DataLab