[R] alternative way to loop

kevinchang shukai at seas.upenn.edu
Tue Sep 11 14:54:49 CEST 2007


I heard that if-loop may result in errors if we are going to loop for a lot
of times. And sum() can be the alternative way to do this kind of  hugbe
looping. But I haven't figure out how . Can someone please give me an
concrete example of using sum() for this purpose? 
-- 
View this message in context: http://www.nabble.com/alternative-way-to-loop-tf4422299.html#a12613696
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list