How can I perform a "setdiff" merge using data.table?
In this case, it's equivalent to an anti join:
tab1[!tab2, on=c("let", "num")]
But setdiff()
would only the first row for every let,num
. This is marked for v1.9.8, FR #547.
In this case, it's equivalent to an anti join:
tab1[!tab2, on=c("let", "num")]
But setdiff()
would only the first row for every let,num
. This is marked for v1.9.8, FR #547.