[R] correlation

Rafael A. Irizarry ririzarr at jhsph.edu
Thu Aug 22 04:59:47 CEST 2002


take the cov of the transpose

if "x" is your matix:
cov(t(x))

On Wed, 21 Aug 2002, Laurence Richard wrote:

> Dear All,
> 
> I have a file (a matrix) on which I have to compute the correlations.
> The function "cov" compute the correlations
> between the columns of a matrix, but I want to compute the correlations
> between the raws.
> 
> Can somebody say to me how I can carry out that?
> 
> Thanks
> 
> Laurence
> 
> 
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list