Obtain a list of columns that are specified by `coltype`
h2o.columns_by_type(object, coltype = "numeric", ...)
object | H2OFrame object |
---|---|
coltype | A character string indicating which column type to filter by. This must be one of the following: "numeric" - Numeric, but not categorical or time "categorical" - Integer, with a categorical/factor String mapping "string" - String column "time" - Long msec since the Unix Epoch - with a variety of display/parse options "uuid" - UUID "bad" - No none-NA rows (triple negative! all NAs or zero rows) |
... | Ignored |
A list of column indices that correspond to "type"
if (FALSE) { h2o.init() prostate_path <- system.file("extdata", "prostate.csv", package = "h2o") prostate <- h2o.uploadFile(path = prostate_path) h2o.columns_by_type(prostate, coltype = "numeric") }