h2o.isfactor {h2o}R Documentation

Check if factor

Description

Check if factor

Usage

h2o.isfactor(x)

Arguments

x

An H2OFrame object.

See Also

factor for the base R implementation, is.factor().

Examples

## Not run: 
library(h2o)
h2o.init()

f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/junit/cars_20mpg.csv"
cars <- h2o.importFile(f)
cars["economy_20mpg"] <- as.factor(cars["economy_20mpg"])
h2o.isfactor(cars["economy_20mpg"])

## End(Not run)

[Package h2o version 3.44.0.3 Index]