title: Remove all rows containing certain values from a string
body: <p>How do I remove all rows from a data frame that contain any of the values I assign in a string vector? I've tried grepl, but that only seems to work when one word is concerned.</p>
  
  <pre><code>number &lt;- c(1:5)
  text &lt;- c("First text","Second text","Another text here","Yet another one","Last text")
  example &lt;- as.data.frame(cbind(number,text))
  
    number              text
  1      1        First text
  2      2       Second text
  3      3 Another text here
  4      4   Yet another one
  5      5         Last text
  </code></pre>
  
  <p>Doesn't work:</p>
  
  <pre><code>remove &lt;- c("First","Yet")
  example[!grepl(remove,example$text),]
  </code></pre>
  
  <p>Desired outcome:</p>
  
  <pre><code> number              text
  1      2       Second text
  2      3 Another text here
  3      5         Last text
  </code></pre>