[R] Pause loop

Armin Goralczyk agoralczyk at gmail.com
Fri Dec 28 19:07:55 CET 2007


Hi list

How can I pause a loop (or any other function) for a defined time? E.g.

for(i in 1:5) {print(1:i); 'function to pause for 10 seconds'}

Thanks for help.
-- 
Armin Goralczyk, M.D.
--
Universitätsmedizin Göttingen
Abteilung Allgemein- und Viszeralchirurgie
Rudolf-Koch-Str. 40
39099 Göttingen
--
Dept. of General Surgery
University of Göttingen
Göttingen, Germany
--
http://www.gwdg.de/~agoralc


More information about the R-help mailing list