[R] nested loop

Sebastian Luque sluque at mun.ca
Sun Feb 22 06:23:45 CET 2004


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




More information about the R-help mailing list