I'd like the code to return the remaining rows after subsetting from another dataframe.
Month = c('January','February','March','April','May','June')
Names = c("Jack", "Steve", "CJ", "Polar", "Ren", "Vent")
Color = c("Red", "Grey", "Yellow", "Blue", "Yellow", "Pink")
df= data.frame(Month, Names, Color)
Month = ""
Names = c("Jack", "Steve", "CJ", "Polar", "Ren", "Vent", "Keegan", "Fabian")
Color = c("Red", "Grey", "Yellow", "Blue", "Yellow", "Pink", "Pink", "Red")
df2 = data.frame(Month, Names, Color)
df$Month is filled up while df2$Month will be an empty column. Essentially what I would like to do is to subtract df from df2. And it should return me
Month Names Color
1 Keegan Pink
2 Fabian Red
dplyr::anti_join(df2, df, by=c("Names", "Color"))?colnames. I think that is what you are looking for.