title: Remove rows from a dataframe that match two columns in another dataframe R
body: <p>I am struggling to remove rows from a data frame in R, where values from different columns match two values from different columns in a second data frame.</p>
  <p>For example, given the following pseudo-data:</p>
  <pre><code>ID1 &lt;- c(5,10,6)
  ID2 &lt;- c(3,5,4)
  Value &lt;- rnorm(3)
  DF1 &lt;- data.frame(ID1, ID2, Value)
  
  x &lt;- c()
  y &lt;- c()
  z &lt;- c()
  
  for (i in 1:10){
  a &lt;- rep(i, 10)
  b &lt;- c(1:10)
  c &lt;- rnorm(10)
  x &lt;- c(x, a)
  y &lt;- c(y, b)
  z &lt;- c(z, c)
  }
  
  DF2 &lt;- data.frame(x, y, z)
  </code></pre>
  <p>I would like to remove the rows from <code>DF2</code> where the combination of <code>x</code> and <code>y</code> matches <code>ID1</code> and <code>ID2</code> from <code>DF1</code> (ie <code>x = 5 and y = 3</code>, <code>x = 10 and y = 5</code>, <code>x = 6 and y = 4</code>, but also <code>x = 3 and y = 5</code>, <code>x = 5 and y = 10</code>, <code>x = 4 and y = 6</code>).</p>