do-while loop in R
Pretty self explanatory. Or something like that I would think. To get the effect of the do while loop, simply check for your condition at the end of the group of statements.
Pretty self explanatory. Or something like that I would think. To get the effect of the do while loop, simply check for your condition at the end of the group of statements.
To loop for infinity (or until a certain condition is met): This will call your code in an endless loop until condition_to_break is True and then breaks out of the loop. You can read more on while loops here. If you want to repeat something n times try using a for loop (read more here).