I am trying to subset one DF based on matching two columns of another DF.
DF1:
ColA    ColB     ColD
d       4        3
e       3        23
w       9        93 
q       2        4
DF2:
ColA    ColB     ColD
d       4        9
e       343      545
w       9        76 
x       34       94
y       01       0
I want to subset DF2 to only include the rows where ColA and ColB are found in DF 1. In this case the desired output would be:
ColA    ColB     ColD
d       4        9
w       9        76 
How can I subset based on two columns? If possible, I'd like to do this with dplyr, subset() function, but the simpler implementation the better!
 
    