Dear R community, I have two dataframes "first" and "second" which share a unique identifier. I wish to make a new dataframe "third" retaining only the rows in "first" which also occur in "second". I have tried using merge but can't seem to figure it out. Any ideas? Thanks! Mark