h2o (version 3.10.3.6)

h2o.setLevels: Set Levels of H2O Factor Column

Description

Works on a single categorical vector. New domains must be aligned with the old domains. This call has SIDE EFFECTS and mutates the column in place (does not make a copy).

Usage

h2o.setLevels(x, levels)

Arguments

x
A single categorical column.
levels
A character vector specifying the new levels. The number of new levels must match the number of old levels.