Hello everyone
I need some advice if the following might be easier implemented.


There are n matrixes

each matrix needs to calculate one value for the rest n-1 matrixes (but not for 
itself). I implemented this one by 

two nested loops


for (i in c(1:length(CRX))) {

   for (j in c(1:length(CRX)))
       if (i!=j) # where i and j are the two indexes. If i==j then is the same 
matrix.
           calculations();


}


Do you think there might be a more efficient R-wise way to implement this?

I would like to thank you in advance for your help

Best Regards
Alex



      
	[[alternative HTML version deleted]]

