title: finding the rows containing any element of a list, in R
body: <p>suppose I have the following matrix:</p>
  
  <pre><code>mm &lt;- matrix(c(1,2,3,5,3,6,7,9,3,4,2,2,2,1,1,1,2,4,4,0,2,5,6,2,3,0,1,2,1,1,8,2,7,1,2,3,1,2,0,3),10,2)
  </code></pre>
  
  <p>Now I would like to see which rows present, TWO of ANY of these values:</p>
  
  <pre><code>values&lt;-c(2,3,4,9)
  </code></pre>
  
  <p>for instance, I would like to highlight a hypothetical row containing:</p>
  
  <p>2,3</p>
  
  <p>or</p>
  
  <p>9,4</p>
  
  <p>so, both elements of the row need to be in the "values" list.</p>
  
  <p>any idea?</p>
  
  <p>thank you very much in advance!</p>
  
  <p>Tina.</p>