Dear Dennis, Thanks the a[a %n% b] function worked well for me. THanks, for the help, Natalie -- View this message in context: http://n4.nabble.com/Matching-Problem-tp1565841p1565910.html Sent from the R help mailing list archive at Nabble.com.