h2o (version 3.20.0.8)

h2o.columns_by_type: Obtain a list of columns that are specified by `coltype`

Description

Obtain a list of columns that are specified by `coltype`

Usage

h2o.columns_by_type(object, coltype = "numeric", ...)

Arguments

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

Value

A list of column indices that correspond to "type"

Examples

Run this code
# NOT RUN {
h2o.init()
prosPath <- system.file("extdata", "prostate.csv", package="h2o")
prostate.hex <- h2o.uploadFile(path = prosPath)
h2o.columns_by_type(prostate.hex,coltype="numeric")
# }

Run the code above in your browser using DataCamp Workspace