correlation: Computes Pearson's correlation between pairs of columns. If...

View source: R/CrossExpression.R

correlationR Documentation

Computes Pearson's correlation between pairs of columns. If one matrix is provided, the output is the pairwise correlations between its columns. If two matrices are provided, the output is the pairwise correlations between their columns.

Description

Computes Pearson's correlation between pairs of columns. If one matrix is provided, the output is the pairwise correlations between its columns. If two matrices are provided, the output is the pairwise correlations between their columns.

Usage

correlation(matrix1, matrix2 = NULL)

Arguments

matrix1

The first input matrix.

matrix2

The second input matrix (optional).

Value

Returns a correlation matrix.


CrossExpression documentation built on Aug. 8, 2025, 7:25 p.m.