Learn R Programming

h2o (version 3.40.0.4)

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", ...)

Value

A list of column indices that correspond to "type"

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

Examples

Run this code
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")
}

Run the code above in your browser using DataLab