Re: [R] Ordering the levels of a vector

2007-12-03 Thread Marc Schwartz
On Mon, 2007-12-03 at 13:21 -0800, Judith Flores wrote: > Hi, > >I have a vector in a data frame that looks > something like this: > > day<-c('Day -1','Day 6','Day 10') > > >This vector specifies the order in which several > panel will appear in a lattice plots. But the order in > whic

Re: [R] Ordering the levels of a vector

2007-12-03 Thread Deepayan Sarkar
On 12/3/07, Judith Flores <[EMAIL PROTECTED]> wrote: > Hi, > >I have a vector in a data frame that looks > something like this: > > day<-c('Day -1','Day 6','Day 10') > > >This vector specifies the order in which several > panel will appear in a lattice plots. But the order in > which such p

Re: [R] Ordering the levels of a vector

2007-12-03 Thread Gabor Grothendieck
Try mixedsort in the gtools package. On Dec 3, 2007 4:21 PM, Judith Flores <[EMAIL PROTECTED]> wrote: > Hi, > > I have a vector in a data frame that looks > something like this: > > day<-c('Day -1','Day 6','Day 10') > > > This vector specifies the order in which several > panel will appear in

[R] Ordering the levels of a vector

2007-12-03 Thread Judith Flores
Hi, I have a vector in a data frame that looks something like this: day<-c('Day -1','Day 6','Day 10') This vector specifies the order in which several panel will appear in a lattice plots. But the order in which such plots will appear will be the following: Day -1, Day 10, Day 6. Which ma