Re: [R] ideas on sorting

2011-03-14 Thread array chip
Thanks Martin! From: Martin Morgan Cc: r-help@r-project.org Sent: Mon, March 14, 2011 12:33:40 PM Subject: Re: [R] ideas on sorting On 03/14/2011 10:32 AM, array chip wrote: > Hi, I have a character vector as below: > > a<-c('10',&#x

Re: [R] ideas on sorting

2011-03-14 Thread Martin Morgan
On 03/14/2011 10:32 AM, array chip wrote: Hi, I have a character vector as below: a<-c('10','3R','4','4R','5','5R','6','6R','7','8','9','7R','1','10R','11' ,'11R','12','12R','13','13R','14','14R','15','15R','1R','2','2R','3','8R' ,'9R') Is there a clever way to sort this easily to return a vect

Re: [R] ideas on sorting

2011-03-14 Thread array chip
Thank you Bill. John From: William Dunlap Sent: Mon, March 14, 2011 10:47:39 AM Subject: RE: [R] ideas on sorting > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of array ch

Re: [R] ideas on sorting

2011-03-14 Thread array chip
That's a smart way to do this. Thanks! John From: Berend Hasselman To: r-help@r-project.org Sent: Mon, March 14, 2011 10:49:37 AM Subject: Re: [R] ideas on sorting array chip wrote: > > Hi, I have a character vector as below: > > a<

Re: [R] ideas on sorting

2011-03-14 Thread Berend Hasselman
array chip wrote: > > Hi, I have a character vector as below: > > a<-c('10','3R','4','4R','5','5R','6','6R','7','8','9','7R','1','10R','11' > ,'11R','12','12R','13','13R','14','14R','15','15R','1R','2','2R','3','8R' > ,'9R') > > Is there a clever way to sort this easily to return a vector of in

Re: [R] ideas on sorting

2011-03-14 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of array chip > Sent: Monday, March 14, 2011 10:33 AM > To: r-help@r-project.org > Subject: [R] ideas on sorting > > Hi, I have a character vector as below

[R] ideas on sorting

2011-03-14 Thread array chip
Hi, I have a character vector as below: a<-c('10','3R','4','4R','5','5R','6','6R','7','8','9','7R','1','10R','11' ,'11R','12','12R','13','13R','14','14R','15','15R','1R','2','2R','3','8R' ,'9R') Is there a clever way to sort this easily to return a vector of index that would produce a vector as