Learn R Programming

fastPLS (version 0.2)

fastcor: 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)

Value

The output matrix of correlation coefficient.

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).

Author

Stefano Cacciatore, Leonardo Tenori, Dupe Ojo, Alessia Vignoli

See Also

optim.pls.cv,pls.double.cv

Examples

Run this code
data(iris)
data=as.matrix(iris[,-5])
fastcor(data)



Run the code above in your browser using DataLab