Convert a column into a factor column.

as.factor(x)

Arguments

x

a column from an H2OFrame data set.

See also

as.factor.

Examples

# NOT RUN {
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)
# }