R - While

About

while execute a loop while a condition is true

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"

Powered by ComboStrap