Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread Henrique Dallazuanna
You can use 'cbind.data.frame' -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 18/11/2007, affy snp <[EMAIL PROTECTED]> wrote: > > Sorry but one more question. After sorting the data frame, > I need to re-organzie the data frame by taking four columns > to create

Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread affy snp
Sorry but one more question. After sorting the data frame, I need to re-organzie the data frame by taking four columns to create a new data frame (I used cbind). But why the first two colums of the new data frame are not USER_CLONE_ID, WELL_ID columns in the previous data frame. I am attaching the

Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread affy snp
Thanks all of you. It works. Have a good weekend! Allen On 11/18/07, Benilton Carvalho <[EMAIL PROTECTED]> wrote: > > actually, > > clones.info[order(clones.info$CHROMOSOME, clones.info$KB_POSITION),] > > btw, documented in the help file. > b > > On Nov 18, 2007, at 1:54 PM, Henrique Dallazuanna

Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread Benilton Carvalho
actually, clones.info[order(clones.info$CHROMOSOME, clones.info$KB_POSITION),] btw, documented in the help file. b On Nov 18, 2007, at 1:54 PM, Henrique Dallazuanna wrote: > clones.info[order(clones.info$CHROMOSOME),] > > -- > Henrique Dallazuanna > Curitiba-Paraná-Brasil > 25° 25' 40" S 49°

Re: [R] how to sort a data.frame by ascending some columns

2007-11-18 Thread Henrique Dallazuanna
clones.info[order(clones.info$CHROMOSOME),] -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 18/11/2007, affy snp <[EMAIL PROTECTED]> wrote: > Dear list, > > I have a data frame (238304 rows and 6 columns). I want the data frame > sorted by two columns in ascending

[R] how to sort a data.frame by ascending some columns

2007-11-18 Thread affy snp
Dear list, I have a data frame (238304 rows and 6 columns). I want the data frame sorted by two columns in ascending order. I am showing the first 5 rows of the data frame > clones.info[1:5,1:6] USER_CLONE_ID CHROMOSOME Expr1002 KB_POSITION Allele_A WELL_ID 1 SNP_A-1855402 17 41419603 414196