matCorrs: A row-wise correlation function calculator

Description Usage Arguments Examples

Description

matCorrs Given two matrices X (m,n), Y(m,n) this function computes (m) Pearson and Spearman correlation coefficients and their significance p-values for every pair of row vectors.

Usage

1
matCorrs(X, Y)

Arguments

X

First matrix

Y

Second matrix. Must have the same dimensions as X

Examples

1
2
3
4
5
(X <- round(matrix (rnorm(30)*10, ncol=6),1)) + 1:10
(Y <- round(X + matrix (rnorm(30)*10, ncol=6),1)) - 10:1
(rownames(X)=rownames(Y)=letters[1:nrow(X)])
(m1<-matCorrs(X,Y))
matCorrs

bertamiro/lpattern documentation built on July 19, 2019, 12:56 p.m.