[R] convering upper triangular matrix into vector

From: <e.rapsomaniki_at_mail.cryst.bbk.ac.uk>
Date: Sun 02 Oct 2005 - 19:04:28 EST


Hi

I have two symmetrical distance matrices and want to compute the correlation coefficient between them (after turning them into vectors).

Is there a way of selecting only the upper triangular part of each matrix, then convert this into a vector so I can compute the correlation?

Many Thanks
Eleni Rapsomaniki



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Oct 02 19:23:53 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:34 EST