Hi,
I am looking for a command in R that would force the for loop to stop after
it finds what it is looking for.
As an example
for(i in 1:5){
   for(j in 3:6){
      if(i==j)
        # do something...
       break;
}
}
And i don't want the loop to execute once i = 3 and stop.

Is there a way to do this?

best,
salih

	[[alternative HTML version deleted]]

