Skip to content
Prev 43564 / 398506 Next

sorting by date

Jeff Jorgensen <jcjorgensen at wisc.edu> writes:
I don't think that does what I think you think it does!
You now know why the ISO standard has yyyy-mm-dd ... 

It's a bit awkward, but I think you need something like

pdate <- as.POSIXct(strptime(date,"%m/%d/%Y"))
tapply(var1, pdate, mean)