R - control flow with repeat{}

25 Dec 2018

Control flow with repeat

Format:

repeat expr

Basic syntax example:

x <- 0
repeat {
  print("a\n")
  if(x==3) break
  x <- x+1
}

[ R  flow  ]