h2o.median | R Documentation |
Compute the median of an H2OFrame.
h2o.median(x, na.rm = TRUE)
## S3 method for class 'H2OFrame'
median(x, na.rm = TRUE)
x |
An H2OFrame object. |
na.rm |
a logical, indicating whether na's are omitted. |
Returns a list containing the median for each column (NaN for non-numeric columns)
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.