h2o.asfactor: Convert H2O Data to Factors

View source: R/frame.R

h2o.asfactorR Documentation

Convert H2O Data to Factors

Description

Convert H2O Data to Factors

Usage

h2o.asfactor(x)

Arguments

x

An H2OFrame object.

See Also

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

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)

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