h2o (version 3.2.0.3)

h2o.anyFactor: Check H2OFrame columns for factors

Description

Determines if any column of an H2OFrame object contains categorical data.

Usage

h2o.anyFactor(x)

Arguments

x
An H2OFrame object.

Value

  • Returns a logical value indicating whether any of the columns in x are factors.

Examples

Run this code
library(h2o)
localH2O <- h2o.init()
irisPath <- system.file("extdata", "iris_wheader.csv", package="h2o")
iris.hex <- h2o.importFile(localH2O, path = irisPath)
h2o.anyFactor(iris.hex)

Run the code above in your browser using DataCamp Workspace