h2o.asfactor: Convert H2O Data to Factors

Description Usage Arguments See Also Examples

View source: R/frame.R

Description

Convert H2O Data to Factors

Usage

1

Arguments

x

An H2OFrame object.

See Also

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

Examples

1
2
3
4
5
6
7
8
9
## 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 Oct. 10, 2021, 1:08 a.m.