R - While
About
while execute a loop while a condition is true
Articles Related
Example
count = 0
while(count < 5) {
print("Hello World")
count = count + 1
}
[1] "Hello World"
[1] "Hello World"
[1] "Hello World"
[1] "Hello World"
[1] "Hello World"
[1] "Hello World"