title: Adding a delay in a command in r
body: <p>I am using the following code to get coordinates of cities from googlemaps api. Problem is that google returns the following error:</p>
  
  <pre><code>OVER_QUERY_LIMIT 
  </code></pre>
  
  <p>for more than 5 requests in a second (and total of 2500 a day). I need to add a delay of 210ms each time it gets geocodes for each row in the code below. How can I do it in r? </p>
  
  <pre><code>mydata$geocode &lt;- geocode(as.character(mydata$value))
  </code></pre>
  
  <p>Thank you!</p>