[R] Extracting diagonal matrix

A Ezhil ezhil02 at yahoo.com
Fri Nov 21 13:28:06 CET 2008


Dear All,

I have a correlation matrix of size 100 x 100 and would like to extract the diagonal matrix from it. I have used the for loop to store tha correlation values of the diagonal matrix. Is there a 'R way' of doing this?

Thanks in advance.

Kind regards,
Ezhil



More information about the R-help mailing list