Dear all,

I have a problem. I have m variables each of which has n observations. I want 
to 
calculate pairwise correlation among the m variables and store the values in a 
m 
x m matrix. It is extremely slow to use nested 'for' loops if m and n are 
large. 
Is there any efficient alternative to do this? Many thanks for your 
suggestions!!

Bill

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to