h2o.arrange function

Sorts an H2O frame by columns

Sorts an H2O frame by columns

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.

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)
  • Maintainer: Tomas Fryda
  • License: Apache License (== 2.0)
  • Last published: 2024-01-11