cor.pairs {dcanr} | R Documentation |
Fast estimation of pairwise correlation coefficients.
cor.pairs(emat, cor.method = c("pearson", "spearman"))
emat |
a numeric matrix |
cor.method |
a character, specifying the method to use for estimation. Possible values are 'pearson' (default) and 'spearman' |
a numeric matrix with estimated correlation coefficients
x <- matrix(rnorm(200), 100, 2) cor.pairs(x) cor.pairs(x, cor.method = 'spearman')