An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20061205/c9c01155/attachment-0004.pl
Nested for loop
3 messages · Natalie Zayats, Simon Blomberg, Peter Dalgaard
Please supply some code that reproduces the problem! cheers, Simon.
Natalie Zayats wrote:
Hi all, Does anybody know whether one can nest IF statement in multiple FOR loops ? According to results of my code, only the first iteration of each loop is performed... Thanks, Regards, Natalie [[alternative HTML version deleted]]
______________________________________________ R-help at stat.math.ethz.ch 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.
Simon Blomberg, B.Sc.(Hons.), Ph.D, M.App.Stat. Centre for Resource and Environmental Studies The Australian National University Canberra ACT 0200 Australia T: +61 2 6125 7800 email: Simon.Blomberg_at_anu.edu.au F: +61 2 6125 0757 CRICOS Provider # 00120C The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. - John Tukey.
Natalie Zayats wrote:
Hi all, Does anybody know whether one can nest IF statement in multiple FOR loops ? According to results of my code, only the first iteration of each loop is performed...
Well, yes, that should be possible. Proving your claim with actual sample code would give the readers a better chance to diagnose what went wrong!