h2o.unique: H2O Unique

Description Usage Arguments Value Examples

View source: R/frame.R

Description

Extract unique values in the column.

Usage

1
h2o.unique(x, include_nas = FALSE)

Arguments

x

An H2OFrame object.

include_nas

If set to TRUE, NAs are included. FALSE (turned off) by default.

Value

Returns an H2OFrame object.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(h2o)
h2o.init()

f <- "https://h2o-public-test-data.s3.amazonaws.com/smalldata/iris/iris_wheader.csv"
iris <- h2o.importFile(f)
h2o.unique(iris["class"])

## End(Not run)

h2o documentation built on Oct. 10, 2021, 1:08 a.m.