h2o (version 3.2.0.3)

h2o.mean: Mean of a column

Description

Obtain the mean of a column of a parsed H2O data object.

Usage

h2o.mean(x, trim = 0, na.rm = FALSE, ...)

## S3 method for class 'H2OFrame': mean(x, trim = 0, na.rm = FALSE, ...)

Arguments

x
An H2OFrame object.
trim
The fraction (0 to 0.5) of observations to trim from each end of x before the mean is computed.
na.rm
A logical value indicating whether NA or missing values should be stripped before the computation.
...
Further arguments to be passed from or to other methods.

See Also

mean for the base R implementation.

Examples

Run this code
localH2O <- h2o.init()
prosPath <- system.file("extdata", "prostate.csv", package="h2o")
prostate.hex <- h2o.uploadFile(localH2O, path = prosPath)
mean(prostate.hex$AGE)

Run the code above in your browser using DataLab