Compute the median of an H2OFrame.

h2o.median(x, na.rm = TRUE)

# S3 method for 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

# NOT RUN {
h2o.init()
prosPath <- system.file("extdata", "prostate.csv", package="h2o")
prostate.hex <- h2o.uploadFile(path = prosPath, destination_frame = "prostate.hex")
h2o.median(prostate.hex)
# }