title: R loop: Downloading multiple csv files with varying dates in the url
body: <p>I wanted to download the weather data for all the days in a month from the following website:</p>
  
  <pre><code>https://www.wunderground.com/history/airport/KSEA/2013/1/8/DailyHistory.html?format=1
  </code></pre>
  
  <p>I realized that this can be done just by changing the dates in the above weblink. For example for 9th January the link will be</p>
  
  <pre><code>...KSEA/2013/1/9/DailyHistory.html?format=1
  </code></pre>
  
  <p>So, when I'm downloading this data individually, I'm able to get the csv files but when I tried writing a <code>for</code> loop for the entire month it is just not working. Following is the code I used for individual file download:</p>
  
  <pre><code>download.file(url = 'https://www.wunderground.com/history/airport/KSEA/2013/1/8/DailyHistory.html?MR=1&amp;format=1',
                destfile = "/Users/ABCD/Desktop/weather.csv") 
  </code></pre>
  
  <p>Any help would be much appreciated.</p>