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:
uid <- 1:49
dates <- seq(as.Date("2013-03-27"), by = "day", length.out = 111)
dataset <- data.frame()
d <- as.Date(d, Origin = "1970-01-01")
for(u in uid){
for(d in dates){
dataset <- rbind(dataset, data.frame(uid = u, dates = d))
}
}