[R] Extract correlations from a matrix

Christoph Scherber Christoph.Scherber at agr.uni-goettingen.de
Thu Nov 8 16:43:14 CET 2007

Dear R users,

suppose I have a matrix of observations for which I calculate all 
pair-wise correlations:


How do I extract only those correlations that are >0.6?

w[w>0.6] #obviously doesn´t work,

and I can´t find a way around it.

I would very much appreciate any help!

Best wishes

(using R 2.5.1 on Windows XP)

Dr. Christoph Scherber
DNPW, Agroecology
University of Goettingen
Waldweg 26
D-37073 Goettingen

phone +49(0)551 39 8807
fax   +49(0)551 39 8806
homepage www.gwdg.de/~cscherb1

More information about the R-help mailing list