Displaying 1 result from an estimated 1 matches for "a0480cc3".
Did you mean:
0480cd3
2010 Apr 05
2
skip for loop
Hi R,
I am running a for loop in which I am doing a certain calculation. As an
outcome of calculation I get an out put say "a". Now in my for loop "I"
needs to be initiated to "a".
Based the below example if the output "a"=3 then the second iteration
needs to be skipped. Is there a way to do this?
for(i in 1:5)
{
##Calculation##
a=3 ## outcome