I'm not sure if this is the most βhydrophilicβ way to do this, but:
transType <- trans$Type sub1 <- trans[transType == 1,]
I seem to be working without problems.
For a more reproducible example, consider
library(h2o) localH2O <- h2o.init() prosPath <- system.file("extdata", "prostate.csv", package = "h2o") prostate.hex <- h2o.importFile(localH2O, path = prosPath) prostate.hex[prostate.hex$GLEASON == 6,]
source share