title: Paste function in loop with dates-R
body: <p>I want to exract data from multiple webites(Each website refers different dates)</p>
  
  <p>A related part of my code(for 2 dates) is as below:</p>
  
  <pre><code>date1&lt;-seq( as.Date("2015-02-01"), by=1, len=2)
  
  for(i in date1)
  {
     url2&lt;-"http://www.covers.com/sports/NCAAB/matchups?selectedDate="
     url1&lt;-paste(url2,i,sep="")
  }
  </code></pre>
  
  <p>However, url1 returns as:</p>
  
  <p>[1] "<a href="http://www.covers.com/sports/NCAAB/matchups?selectedDate=16467" rel="nofollow">http://www.covers.com/sports/NCAAB/matchups?selectedDate=16467</a>"</p>
  
  <p>However, it should return for i=2</p>
  
  <p>[1] "<a href="http://www.covers.com/sports/NCAAB/matchups?selectedDate=2015-02-02" rel="nofollow">http://www.covers.com/sports/NCAAB/matchups?selectedDate=2015-02-02</a>"</p>
  
  <p>How can I do that in R? I will be very glad for any help. Thanks a lot.</p>