h2o.median: H2O Median

Description Usage Arguments Value Examples

View source: R/frame.R

Description

Compute the median of an H2OFrame.

Usage

1
2
3
4
h2o.median(x, na.rm = TRUE)

## S3 method for class 'H2OFrame'
median(x, na.rm = TRUE)

Arguments

x

An H2OFrame object.

na.rm

a logical, indicating whether na's are omitted.

Value

Returns a list containing the median for each column (NaN for non-numeric columns)

Examples

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

prostate_path <- system.file("extdata", "prostate.csv", package = "h2o")
prostate <- h2o.uploadFile(path = prostate_path)
h2o.median(prostate)

## End(Not run)

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