h2o.var | R Documentation |
Compute the variance or covariance matrix of one or two H2OFrames.
h2o.var(x, y = NULL, na.rm = FALSE, use)
var(x, y = NULL, na.rm = FALSE, use)
x |
An H2OFrame object. |
y |
|
na.rm |
|
use |
An optional character string indicating how to handle missing values. This must be one of the following: "everything" - outputs NaNs whenever one of its contributing observations is missing "all.obs" - presence of missing observations will throw an error "complete.obs" - discards missing values along with all observations in their rows so that only complete observations are used |
cor
for the base R implementation, var()
. h2o.sd
for standard deviation.
## Not run:
library(h2o)
h2o.init()
prostate_path <- system.file("extdata", "prostate.csv", package = "h2o")
prostate <- h2o.uploadFile(path = prostate_path)
var(prostate$AGE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.