Re: [R] How do you sort a data frame on a selection of columns?

2005-07-07 Thread Spencer Graves
Does "order" do what you want? spencer graves Briggs, Meredith M wrote: > This is what to start with: > > Data Frame A B C D > c1 4 y 5 > c3 6 d 7 > c1 5 t 6 > > Now sort on A then

Re: [R] How do you sort a data frame on a selection of columns?

2005-07-07 Thread Gabor Grothendieck
On 7/7/05, Briggs, Meredith M <[EMAIL PROTECTED]> wrote: > This is what to start with: > > Data Frame A BC D >c1 4 y 5 >c3 6 d 7 >c1 5 t 6 > > Now sort on A then C > > This

Re: [R] How do you sort a data frame on a selection of columns?

2005-07-07 Thread Peter Dalgaard
"Briggs, Meredith M" <[EMAIL PROTECTED]> writes: > This is what to start with: > > Data Frame A B C D > c1 4 y 5 > c3 6 d 7 > c1 5 t 6 > > Now sort on A then C > > This is what to e

[R] How do you sort a data frame on a selection of columns?

2005-07-07 Thread Briggs, Meredith M
This is what to start with: Data Frame A BC D c1 4 y 5 c3 6 d 7 c1 5 t 6 Now sort on A then C This is what to end with: Data Frame A B C D