Hi all,

Does anybody know whether one can nest an 'if' statement in a 'for' loop. According to the results of my code, the for loop is performed first, but I'm not sure I got something else wrong with my code. I'm trying to perform the if statement for each step of the for loop. Thanks in advance.

Best regards,
Sebastian

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to