Re: [R] using match to obtain non-sorted index values from non-sortedvector

2014-07-09 Thread Folkes, Michael
ginal Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: July-09-14 2:01 PM To: Folkes, Michael Cc: David L Carlson; r-help@r-project.org Subject: Re: [R] using match to obtain non-sorted index values from non-sortedvector On Jul 9, 2014, at 1:13 PM, Folkes, Michael wrote:

Re: [R] using match to obtain non-sorted index values from non-sortedvector

2014-07-09 Thread David Winsemius
On Jul 9, 2014, at 1:13 PM, Folkes, Michael wrote: > So nice! > Apply wins again. I doubt that `sapply( ..., which(,) )` would win a foot race with `match`: > match(Tset, pop.df$pop) [1] 5 4 2 -- David. > Thanks David. > Michael > > -Original Message- > From: David L Carlson [mailto

Re: [R] using match to obtain non-sorted index values from non-sortedvector

2014-07-09 Thread Folkes, Michael
So nice! Apply wins again. Thanks David. Michael -Original Message- From: David L Carlson [mailto:dcarl...@tamu.edu] Sent: July-09-14 1:11 PM To: Folkes, Michael; r-help@r-project.org Subject: RE: using match to obtain non-sorted index values from non-sortedvector There may be a faster