title: Return the IDs of a matrix that has all elemets of a vector
body: <p>I know the answer is completely easy but I could not get it so far. Also I tried to find the answer through the similar questions but i could not. Anyway, I need to return the <code>ID</code> of matrix <code>m</code> that has all elemets of a vector (<code>NoN</code>). In the example that I prepared at below, I need to return IDs 1 and 3. </p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>m&lt;-matrix(c(1,1,1,1,2,2,34,45,4,4,4,4,4,5,6,3,3,3,3,21,22,3425,345,65,22,42,65,86,456,454,5678,5,234,22,65,21,22,786),nrow=19)
  colnames(m)&lt;-c("ID","LO")
  NoN&lt;-c(21,22)
  </code></pre>
  
  <p><strong>My attempts so far are as follow:</strong> </p>
  
  <pre><code>1: m[all(m[,2] %in% NoN),1]
  2: m[match(NoN, m[,2]),1]
  3: subset(m, m[,2] %in% NoN)
  4: m[which(m[,2] %in% NoN),1]
  </code></pre>
  
  <p>Appreciate!</p>