Subsetting a data frame to the rows not appearing in another data frame

后端 未结 5 894
温柔的废话
温柔的废话 2021-01-23 13:53

I have a data frame A with observations

    Var1   Var2  Var3
     1       3    4
     2       5    6
     4       5    7
     4       5    8
     6       7    9         


        
5条回答
  •  心在旅途
    2021-01-23 14:22

    Using sqldf is an option.

    require(sqldf)
    
    C <- sqldf('SELECT * FROM A EXCEPT SELECT * FROM B')
    

提交回复
热议问题