Skip to content
Prev 206733 / 398503 Next

change codes into loops

On Jan 18, 2010, at 7:19 PM, rusers.sh wrote:

            
There is no correct method. You cannot index on the object name b_nn  
that way. R has not been developing using a syntax with that much  
flexibility.  If you want a 3D array of values, then you could create  
b_ijn[i, j, nn] and make assignments to it. But if you tried to do  
this with paste and assign, you will spending considerably more time  
degbugging it than it is worth and it would likely be more inefficient  
than what you have.