Learn R Programming

h2o (version 3.8.3.3)

h2o.cor: Correlation of columns.

Description

Compute the correlation matrix of one or two H2OFrames.

Usage

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

Arguments

x
An H2OFrame object.
y
NULL (default) or an H2OFrame. The default is equivalent to y = x.
na.rm
logical. Should missing values be removed?
use
An optional character string indicating how to handle missing values. This must be one of the following:

Examples

Run this code

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

Run the code above in your browser using DataLab