[R] sort dates
R. Michael Weylandt
michael.weylandt at gmail.com
Fri Mar 9 14:49:54 CET 2012
? 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_crl at yahoo.com> wrote:
> Hello,
> How is it possible to sort dates in R?
>
> Cheers,
>
> Carol
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list