h2o.arrange: Sorts an H2O frame by columns

View source: R/frame.R

h2o.arrangeR Documentation

Sorts an H2O frame by columns

Description

Sorts H2OFrame by the columns specified. H2OFrame can contain String columns but should not sort on any String columns. Otherwise, an error will be thrown. To sort column c1 in descending order, do desc(c1). Returns a new H2OFrame, like dplyr::arrange.

Usage

h2o.arrange(x, ...)

Arguments

x

The H2OFrame input to be sorted.

...

The column names to sort by.

Examples

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

f <- "https://h2o-public-test-data.s3.amazonaws.com/smalldata/iris/iris_train.csv"
iris <- h2o.importFile(f)
h2o.arrange(iris, "species","petal_len","petal_wid")

## End(Not run)


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