[R] How to calculate average correlation coefficient of a correlation matrix ?

2009-10-13 Thread Amit Kumar
Hi! All, I have large correlation matrix Cor. I wish to calculate average correlation coefficient for this matrix. Is there any function in R to do this? Thanks in advance. Amit __ R-help@r-project.org mailing list

Re: [R] How to calculate average correlation coefficient of a correlation matrix ?

2009-10-13 Thread Chuck Cleland
On 10/13/2009 10:13 AM, Amit Kumar wrote: Hi! All, I have large correlation matrix Cor. I wish to calculate average correlation coefficient for this matrix. Is there any function in R to do this? Thanks in advance. cormat - cor(iris[,1:4]) corlowtri - cormat[lower.tri(cormat)] corlowtri