Returns a vector containing the minimum and maximum of all the given arguments.

h2o.range(x, na.rm = FALSE, finite = FALSE)

Arguments

x

An H2OFrame object.

na.rm

logical. indicating whether missing values should be removed.

finite

logical. indicating if all non-finite elements should be omitted.

See also

range for the base R implementation.

Examples

if (FALSE) {
library(h2o)
h2o.init()

f <- "https://h2o-public-test-data.s3.amazonaws.com/smalldata/iris/iris_train.csv"
iris <- h2o.importFile(f)
h2o.range(iris["petal_len"], na.rm = TRUE, finite = TRUE)
}