Skip to content
Prev 148004 / 398500 Next

One-to-one matching?

My thanks to Gabor Grothendieck, Charles C. Berry and Moshe Olshansky
for their suggested solutions.

The upshot of which is that a nice one-line solution to my one-to-one
exact matching problem is the Grothendieck-Berry collaboration of

   match(make.unique(matchSample), make.unique(lookupTable))

I've settled on this particular solution as it appears to be the fastest
of the three possibilities given, although Moshe's solution comes a
close second :-)

Many thanks...

Alec
On Sun, Jun 22, 2008 at 10:57 PM, <Alec.Zwart at csiro.au> wrote: