Skip to content
Prev 82624 / 398506 Next

date handling

d = as.POSIXlt(c("2005-07-01", "2005-07-02", "2005-07-03", "2005-07-04", 
"2005-07-05"))
d$mon and d$year will get you part way there.

That is assuming your dates are formated yyyy-mm-dd.  strptime() might 
also be useful.
Richard van Wingerden wrote: