Find obs not present in both dfs - missing obs. Anti_join

PHOTO EMBED

Wed May 11 2022 13:12:08 GMT+0000 (Coordinated Universal Time)

Saved by @Treenose

incomplete_df %>%
  anti_join(complete_df, by = "column_2b_sorted") #returns rows mising in incomplete_df

#If column names are not the same:
incomplete_df %>%
  anti_join(complete_df, by = c("column_2b_sorted_incomplete" = "column_2b_sorted_complete") 
content_copyCOPY

https://towardsdatascience.com/get-started-using-anti-joins-in-r-837af13be286