1

it might be sound a little bit strange but is there somwhow a possibility to slowdown a loop in R? For example to let R do only one iteration per second.

Thank you

burton030
  • 405
  • 4
  • 8
  • 23
  • add `Sys.sleep(1)` at the end of the loop. It will wait one second before the next iteration – scoa Sep 09 '15 at 11:46

1 Answers1

3

You can put this line inside your loop:

Sys.sleep(1)

That will slow done each iteration in the loop for 1 second.

milos.ai
  • 3,882
  • 7
  • 31
  • 33