? 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 <[email protected]> wrote: > Hello, > How is it possible to sort dates in R? > > Cheers, > > Carol > > ______________________________________________ > [email protected] 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. ______________________________________________ [email protected] 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.

