start <- as.POSIXct("2016-01-17")
end <- start + as.difftime(72, units="days")
for(i in seq(from=start, by=60*60*24*7, to=end)) {
print(i)
}
As the codes show above, I try to print out the date after Year 2016 within 72 days. However, the output is always numbers such as 1453006800. I've tried everything I can think of including as.Date, as.Date(i, origin="2016-01-17 00:00:00 EST")....Thanks!