Re: [R] looking for matches

2008-11-17 Thread Peter Alspach
Alina I suspect you want match (or %in%): ?match HTH Peter Alspach > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alina Sheyman > Sent: Tuesday, 18 November 2008 9:04 a.m. > To: r-help@r-project.org > Subject: [R] l

Re: [R] looking for matches

2008-11-17 Thread Stavros Macrakis
I'm not sure I understand what you're looking for in the result. What exactly do you mean by a "match"? What do you want in the third table besides the class names? Do you just want a list (not a data frame) of those class names which table A and table B have in common? Then how about intersect

[R] looking for matches

2008-11-17 Thread Alina Sheyman
My question is probably pretty basic, but since I'm really new to R, here it goes I have two separate data frames that include class names and various other information on classes. I'm trying to create a match based on class names and if a match exists to create a third data frame with the c