What is the fastest function in r to remove the rows in a dataframe if the same two first column is in another dataframe. For example, if the data frame A is as below(with more information columns):
NAME SURENAME
John Beer
Rose Pitt
Bob Kin
Charile Kind
Smith Red
Brad Tea
Kale Joe
Ana Bread
Lauren Old
Mike Karl
and B as below:
NAME SURENAME
Rose Pitt
Smith Red
Mike Karl
I want B to be removed from A to be like:
NAME SURENAME
John Beer
Bob Kin
Charile Kind
Brad Tea
Kale Joe
Ana Bread
Lauren Old
So in my case, A has 2 million rows (and 10 other columns) and B has 200,000 rows (all unique Name and Surnames).