How to Set a delay time between two instructions in R ,
For (i in 1:N){
instruction 1
- delay time -
instruction 2
}
It sounds like you are looking for Sys.sleep
.
You would do:
for (i in 1:N){
instruction 1
Sys.sleep(time_in_seconds)
instruction 2
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With