Assume I have two dataframes
df1 <- data.frame (name = c("Mike", "Paul", "Paul", "Henry"),
age = c(20, 21, 22, 23))
df2 <- data.frame (name = c("Sam", "Paul", "Paul", "Bob"),
age = c(26, 30, 22, 23))
I would like to find which rows present in df1 have an identical match in df2 (in this case there will be one such match: "Paul", 22).
What is the most elegant way to do this in R?