I have two data frames (d1 and d2), they both have the same column names. I have one column called label_name in both which is a character with species names. Data frame 1 (d1) has only my species of interest (A and B), while data frame 2 (d2) has other species that I am not interested about as well as the ones I need (A, B, C, D).
I want to bind the rows from d2 into d1 ONLY when label_name = A and B.
I tried using the if function, filter, and merge. But none of them worked.
 
    