[R] correlation matrix in Hmisc

Luca De Benedictis debene at unimc.it
Fri Oct 17 16:36:47 CEST 2003


Dear all,
I am trying to compute a  matrix of Pearson's `r' or Spearman's `rho' 
rank correlation coefficients using rcorr (Hmisc) the following way:

 > mx<-rcorr(x, type="spearman")[1]

but then ...

 > is.matrix(mx)
[1] FALSE

Even if  I use as.matrix the result is not better.
What can I do?

Thank you all

Luca




More information about the R-help mailing list