From: Sean Davis (firstname.lastname@example.org)
Date: Thu 27 May 2004 - 20:48:07 EST
If you have a matrix m, you can take
Where t is the transpose operator.
On 5/27/04 6:34 AM, "Jason Skelton" <email@example.com> wrote:
> The cor function in the stats package calculates the correlation between
> columns of data, does anyone know if it is at all possible to calculate
> the correlation between rows instead ?
> Or is there an appropriate package or function that is more appropriate
> I'd like to calculate spearman & pearson correlations between rows.
> Many thanks
Rfirstname.lastname@example.org mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST