fastcor {fastPLS} | R Documentation |
Fast Correlation Analysis
Description
This function perform a fast calculation of the Spearman's correlation coefficient.
Usage
fastcor (a, b=NULL, byrow=TRUE, diag=TRUE)
Arguments
a |
a matrix of training set cases. |
b |
a matrix of training set cases. |
byrow |
if byrow == T rows are correlated (much faster) else columns |
diag |
if diag == T only the diagonal of the cor matrix is returned (much faster). |
Value
The output matrix of correlation coefficient.
Author(s)
Stefano Cacciatore, Leonardo Tenori, Dupe Ojo, Alessia Vignoli
See Also
Examples
data(iris)
data=as.matrix(iris[,-5])
fastcor(data)
[Package fastPLS version 0.2 Index]