Removing data from one dataframe that exists in another dataframe R

前端 未结 3 596
一整个雨季
一整个雨季 2021-02-10 03:31

I want to remove data from a dataframe that is present in another dataframe. Let me give an example:

letters<-c(\'a\',\'b\',\'c\',\'d\',\'e\')
numbers<-c(1         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-10 03:40

    A dplyr solution

    library(dplyr)
    
    list_one %>% anti_join(list_two)
    

提交回复
热议问题