calc_matrix_correlation: Calculates correlation between two (symmetrical) matrices...

Description Usage Arguments

Description

Calculates correlation between two (symmetrical) matrices using 'stats::cor'

Usage

1
2
3
4
5
6
calc_matrix_correlation(
  m1,
  m2,
  zeros_remove = FALSE,
  method = c("pearson", "kendall", "spearman")
)

Arguments

m1, m2

The two matrices. Function only keeps row and colnames that exist in m1 and m2.

zeros_remove

Should all zeros be removed? (set to NA before running 'cor').

method

a character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated.


urskalbitzer/daginR documentation built on Jan. 21, 2020, 1:26 a.m.