h2o.columns_by_type function

Obtain a list of columns that are specified by coltype

Obtain a list of columns that are specified by coltype

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

Returns

A list of column indices that correspond to "type"

Examples

## Not run: h2o.init() prostate_path <- system.file("extdata", "prostate.csv", package = "h2o") prostate <- h2o.uploadFile(path = prostate_path) h2o.columns_by_type(prostate, coltype = "numeric") ## End(Not run)
  • Maintainer: Tomas Fryda
  • License: Apache License (== 2.0)
  • Last published: 2024-01-11