R/frame.R
Convert a column into a factor column.
as.factor(x)
x | a column from an H2OFrame data set. |
---|
as.factor
.
# 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) # }