h2o (version 3.10.5.2)

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)
h2o.init()
irisPath <- system.file("extdata", "iris_wheader.csv", package="h2o")
iris.hex <- h2o.importFile(path = irisPath)
h2o.anyFactor(iris.hex)

Run the code above in your browser using DataCamp Workspace