[R] labeled break statements in R?

Roger Levy rog at stanford.edu
Wed Aug 18 20:51:44 CEST 2004


Hi,

Are there labeled break statements in R?  i.e., something along the
lines of

TOPLOOP: for(i in 1:m) {
  for(j in 1:n) {
    ...
    if(condition) {
       break TOPLOOP
    }
  }
}

Thanks,

Roger




More information about the R-help mailing list