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',
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
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
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<
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
> -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
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
7 matches
Mail list logo