R finding rows of a data frame where certain columns match those of another [duplicate]
问题 This question already has answers here : Extract data from one data frame to another data frame with different row length (4 answers) Closed 6 years ago . I have an R question that I'm even sure how to word in one sentence, and couldn't find an answer for this yet. I have two data frames that I would like to 'intersect' and find all rows where column values match in two columns. I've tried connecting two intersect() and which() statements with &&, but neither has given me what I want yet.