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.
______________________________________________ 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.