Re: [R] sorting by date

2010-08-03 Thread stephen sefick
llazuanna [mailto:www...@gmail.com] > Sent: Monday, August 02, 2010 8:12 PM > To: Leigh E. Lommen > Cc: r-help@r-project.org > Subject: Re: [R] sorting by date > > > > a <- c( 20071031,20071130, 20071231) > sort(a) > > Or if you want convert to date: > sort(s

Re: [R] sorting by date

2010-08-03 Thread Joshua Wiley
  info > > 20071130  information   info > > 20071231  information   info > > Etc. > > > > Thanks. > > Leigh > > > > > > From: Henrique Dallazuanna [mailto:www...@gmail.com] > Sent: Monday, August 02, 2010 8:12

Re: [R] sorting by date

2010-08-02 Thread Leigh E. Lommen
tc. Thanks. Leigh From: Henrique Dallazuanna [mailto:www...@gmail.com] Sent: Monday, August 02, 2010 8:12 PM To: Leigh E. Lommen Cc: r-help@r-project.org Subject: Re: [R] sorting by date a <- c( 20071031,20071130, 20071231) sort(a) Or if you want conve

Re: [R] sorting by date

2010-08-02 Thread Henrique Dallazuanna
a <- c( 20071031,20071130, 20071231) sort(a) Or if you want convert to date: sort(strptime(a, '%Y%m%d')) On Mon, Aug 2, 2010 at 9:03 PM, Leigh E. Lommen < leigh.lom...@courtesycorporation.com> wrote: > I am unsure how to sort a column by date if it is currently in the form: > > MMDD > > > >

Re: [R] sorting by date

2010-08-02 Thread Nikhil Kaza
> a <- c( 20071031,20071130, 20071231) b<- sort(as.Date(as.character(a), format="%Y%M%d")) On Aug 2, 2010, at 8:03 PM, Leigh E. Lommen wrote: I am unsure how to sort a column by date if it is currently in the form: MMDD For example the months: 20071031 20071130 20071231 Etc. Re

[R] sorting by date

2010-08-02 Thread Leigh E. Lommen
I am unsure how to sort a column by date if it is currently in the form: MMDD For example the months: 20071031 20071130 20071231 Etc. Regards, Leigh [[alternative HTML version deleted]] __ R-help@r-project.org mailing list htt