h2o.asfactor function

Convert H2O Data to Factors

Convert H2O Data to Factors

h2o.asfactor(x)

Arguments

  • x: An H2OFrame object.

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.asfactor(cars["cylinders"]) ## End(Not run)

See Also

factor for the base R implementation, as.factor().

  • Maintainer: Tomas Fryda
  • License: Apache License (== 2.0)
  • Last published: 2024-01-11