Skip to contents

Calculates the correlation between the columns of two matrices. The number of rows need to be the same!

Usage

rs_cor2(x, y, spearman)

Arguments

x

R matrix with doubles.

y

R matrix with doubles.

spearman

Shall the Spearman correlation be calculated instead of Pearson.

Value

The correlation matrix.