Any R experts? Problem here

OK, so I've looked and looked at the help on R, but I can't find a method for solving this. I have some electoral data, including the Polling District and the Polling Number of each person in the ward(area). This comes in table form, with many headers and then the 'answers' to these headers for each person underneath. Problem is: I then have another data file for the 2006 election and who voted which lists the combinations of polling district and polling number for each person who voted. I now want to match these combinations to the ones in the other data file, so I can add a 'no vote' or 'voted' option to the existing data I have for each person.

I hope my explanation makes sense, and if anyone has any suggestions I'd be eternally grateful.