[R] decompose a correlation matrix

Mark Strivens strivens at bcm.tmc.edu
Thu Sep 23 20:08:53 CEST 2004


Is there a simple way to decompose the upper triangle
of a correlation matrix to a linear list;

For example:

  X Y Z
X 1 2 3
Y 2 1 4
Z 3 4 1

so you get a list like:

xy 2
XZ 3
YZ 4

I suspect you can do it with a matrix transformation, but
that beyond me at present.

Many thanks

Mark
_________________________
Department of Molecular and Human Genetics,
Baylor College of Medicine,




More information about the R-help mailing list