? sort x <- c(Sys.Date(), Sys.Date() + 1, Sys.Date() - 1)
print(x) print(sort(x)) Michael On Fri, Mar 9, 2012 at 8:35 AM, carol white <wht_...@yahoo.com> wrote: > Hello, > How is it possible to sort dates in R? > > Cheers, > > Carol > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.