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
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
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.
3 matches
Mail list logo