I have up to 30 data frames with a common ID column. There are other colums in each df but im just showing the ID here.
Library DF1 DF2 DF3
ID# ID# ID# ....
1111 1111 1112 ....
2222 1111 3333 ....
3333 3333 3333 ....
4444 2222 4444 ....
I have to compare the ID# colum in each of theses tables to the library ID colum to make sure the Id number matches an ID number in the library.
Currently I use dplyr and do...
DF1 %>%
anti_join(library, by = 'ID#')
and the same for each table. It would just return any ID numbers that are not in the library, I do this same command for every data table but would like to run it for all 30 of my tables. I put all my DFs in a list but I'm not really sure how to proceed, for loop? apply? any help would be appreciated, as this pushes my boundaries of R knowledge.