Learn R Programming

h2o (version 2.8.4.4)

h2o.anyFactor: Determine if an H2O parsed data object contains categorical data.

Description

Checks if an H2O parsed data object has any columns of categorical data.

Usage

h2o.anyFactor(x)

Arguments

x
An H2OParsedData object.

Value

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

See Also

H2OParsedData

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 DataLab