Compute the correlation matrix of one or two H2OFrames.
h2o.cor(x, y = NULL, na.rm = FALSE, use) cor(x, ...)
| 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 | 
| ... | Further arguments to be passed down from other methods. | 
# NOT RUN { h2o.init() prosPath <- system.file("extdata", "prostate.csv", package="h2o") prostate.hex <- h2o.uploadFile(path = prosPath) cor(prostate.hex$AGE) # }