I have 2 data frames (A and B) of the following structure:
A:
projectID offerID
20 12
20 17
32 12
32 25
B:
projectID offerID
20 12
20 17
32 12
and I'd like to check for pairs that are in A but not in B. So in my example, I'd like to get new df which contains the pairs that are in A but not in B:
projectID offerID
32 25
I tried some options; for example:
APairs <- A %>% group_by(projectID, offerID)
BPairs <- B %>% group_by(projectID, offerID)
!(APairs %in% BPairs)
but I'm getting True/False result, which I can't really understand/verify against my data.
Your help will be appreciated!