[R] How to process each element in 3 minute interval using a for loop in R?

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jul 9 09:31:40 CEST 2014


On 09/07/2014 08:17, Takatsugu Kobayashi wrote:
> Hi R-users,
>
> This should be a simple question: How can I delay each loop process in some
> minutes? The reason for this is I need to avoid too much traffic to get
> longitudes and latitudes of 2000 addresses using google API.
>
> I am searching for solutions with keywords like interval, minutes, delay,
> but no directly relevant clues have come up yet.

See ?Sys.sleep

>
> Many thanks in advance.
>
> Best,
>
> Taka


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list