Learn R Programming

h2o (version 3.40.0.4)

h2o.anyFactor: Check H2OFrame columns for factors

Description

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

Usage

h2o.anyFactor(x)

Value

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

Arguments

x

An H2OFrame object.

Examples

Run this code
if (FALSE) {
library(h2o)
h2o.init()
iris_hf <- as.h2o(iris)
h2o.anyFactor(iris_hf)
}

Run the code above in your browser using DataLab