as.factor: Convert H2O Data to Factors

Description Usage Arguments See Also Examples

View source: R/frame.R

Description

Convert a column into a factor column.

Usage

1

Arguments

x

a column from an H2OFrame data set.

See Also

as.factor.

Examples

1
2
3
4
5
h2o.init()
prosPath <- system.file("extdata", "prostate.csv", package="h2o")
prostate.hex <- h2o.uploadFile(path = prosPath)
prostate.hex[,2] <- as.factor(prostate.hex[,2])
summary(prostate.hex)

h2o documentation built on June 17, 2018, 5:03 p.m.