cor: Correlation (generic)

View source: R/S3_correlation.R

corR Documentation

Correlation (generic)

Description

S3 generic for cor(). Dispatches to cor.HDF5Matrix for HDF5Matrix objects, and to stats::cor() for all others.

Usage

cor(x, y = NULL, use = "everything", method = "pearson", ...)

Arguments

x

A matrix or HDF5Matrix object.

y

Optional second matrix.

use

Character. Method for handling missing values.

method

Character. Correlation method: "pearson" or "spearman".

...

Additional arguments passed to the method.

Value

Correlation matrix.


BigDataStatMeth documentation built on May 15, 2026, 1:07 a.m.