You can use anti_join() in dplyr.
anti_join()
dplyr
It returns all rows from x where there are not matching values in y , keeping just columns from x .
x
y
Also, please provide a reproducible example next time.