R has regular while loops:
while (condition) {
Note that if you try to get help about while you get an error:
help(while)
Error: unexpected ‘)’ in “help(while)”
R has regular while loops:
while (condition) {
Note that if you try to get help about while you get an error:
help(while)
Error: unexpected ‘)’ in “help(while)”
‘while’ is a special keyword in R, so you need to use
help('while')