is.factor: Check if factor

View source: R/frame.R

is.factorR Documentation

Check if factor

Description

Check if factor

Usage

is.factor(x)

Arguments

x

An H2OFrame object

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"])
is.factor(cars["economy_20mpg"])

## End(Not run)

h2o documentation built on May 29, 2024, 4:26 a.m.