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

2014-07-09 Thread David L Carlson
ailto:r-help-boun...@r-project.org] On Behalf Of Folkes, Michael Sent: Wednesday, July 9, 2014 2:58 PM To: r-help@r-project.org Subject: [R] using match to obtain non-sorted index values from non-sorted vector Hello all, I've been struggling with the best way to find index values from a

[R] using match to obtain non-sorted index values from non-sorted vector

2014-07-09 Thread Folkes, Michael
Hello all, I've been struggling with the best way to find index values from a large vector with elements that will match elements of a subset vector [the table argument in match()]. BUT the index values can't come out sorted (as we'd get in which(X %in% Y) ). My 'population' vector can't be so