powered by
Compute the median of an H2OFrame.
h2o.median(x, na.rm = TRUE)# S3 method for H2OFrame median(x, na.rm = TRUE)
# S3 method for H2OFrame median(x, na.rm = TRUE)
Returns a list containing the median for each column (NaN for non-numeric columns)
An H2OFrame object.
a logical, indicating whether na's are omitted.
if (FALSE) { library(h2o) h2o.init() prostate_path <- system.file("extdata", "prostate.csv", package = "h2o") prostate <- h2o.uploadFile(path = prostate_path) h2o.median(prostate) }
Run the code above in your browser using DataLab