Remove rows in data.table according to another data.table

后端 未结 2 1600
长发绾君心
长发绾君心 2021-01-06 04:50

I have a data.table named dtA:

My actual dtA has 62871932 rows and 3 columns:

  date    company    value
19810         


        
2条回答
  •  离开以前
    2021-01-06 05:35

    Use an anti-join:

    dtA[!dtB, on=.(date, company, value)]
    

    This matches all records in dtA that are not found in dtB using the columns in on.

提交回复
热议问题