powered by
as.factor(x)
is.factor
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)
Run the code above in your browser using DataLab