Learn R Programming

h2o (version 3.6.0.8)

h2o.var: Variance of a column.

Description

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

Usage

h2o.var(x, y = NULL, na.rm = FALSE, use)

var(x, y = NULL, na.rm = FALSE, use)

Arguments

x
An H2O Frame object.
y
NULL (default) or a column of an H2O Frame object. The default is equivalent to y = x (but more efficient).
na.rm
logical. Should missing values be removed?
use
An optional character string to be used in the presence of missing values. This must be one of the following strings. "everything", "all.obs", or "complete.obs".

See Also

var for the base R implementation. h2o.sd for standard deviation.

Examples

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

Run the code above in your browser using DataLab