Re: [R] do while loop

2009-12-13 Thread annie Zhang
Thanks, Uwe. It's very useful. Annie 2009/12/13 Uwe Ligges > > > annie Zhang wrote: > >> Hi, All, >> >> Is there a 'do while' loop in R for which I can check conditions after? I >> checked and it seems there is only the 'while' function. >> > > > Right, but you can use repeat{} and check condit

Re: [R] do while loop

2009-12-13 Thread Uwe Ligges
annie Zhang wrote: Hi, All, Is there a 'do while' loop in R for which I can check conditions after? I checked and it seems there is only the 'while' function. Right, but you can use repeat{} and check conditions whereever using if() and exit the loop with the "break" control word. Uwe L

[R] do while loop

2009-12-13 Thread annie Zhang
Hi, All, Is there a 'do while' loop in R for which I can check conditions after? I checked and it seems there is only the 'while' function. Thanks, Annie [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.