h2o.nlevels: Get the number of factor levels for this frame.

View source: R/frame.R

h2o.nlevelsR Documentation

Get the number of factor levels for this frame.

Description

Get the number of factor levels for this frame.

Usage

h2o.nlevels(x)

Arguments

x

An H2OFrame object.

See Also

nlevels for the base R method.

Examples

## 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)

h2o documentation built on May 29, 2024, 4:26 a.m.