title: Variable as date in for loop
body: <p>I am trying to rbind a date and another variable in a for loop, however, I keep getting numbers like "15791" instead of a date in the final dataset. This is what my code looks like: </p>
  
  <pre><code>uid &lt;- 1:49
  dates &lt;- seq(as.Date("2013-03-27"), by = "day", length.out = 111)
  dataset &lt;- data.frame()
  d &lt;- as.Date(d, Origin = "1970-01-01")
  
  for(u in uid){
    for(d in dates){
        dataset &lt;- rbind(dataset, data.frame(uid = u, dates = d))
      }
  }
  </code></pre>