[R] multiple "next" in for loops?
    remko duursma 
    remkoduursma at hotmail.com
       
    Wed Nov 12 02:16:52 CET 2008
    
    
  
Dear R list,
I was wondering if there is an easy fix to this problem (there are workarounds, as always):
Within a for loop, we can use "next" to skip to the next index,
but how can we skip the next n indices?
So, I would like something that looks like;
for(i in 1:10){
   if(somecondition)next(5)
}
Is there a way?
thanks,
Remko
(sorry for potential double posting, last version was HTML I think)
_________________________________________________________________
 Live
    
    
More information about the R-help
mailing list