title: Search within a string that does not contain a pattern
body: <p>It appears that while <code>grep</code> has an invert argument, <strong><code>grepl</code></strong> does not.</p>
  <p>I would like to subset for using 2 filters</p>
  <pre><code>data$ID[grepl(&quot;xyx&quot;, data$ID) &amp; data$age&gt;60]
  </code></pre>
  <p>How can I subset for age&gt;60 and ID <strong>not containing</strong> &quot;xyx&quot;? What I did is</p>
  <pre><code>data$ID[abs(grepl(&quot;xyx&quot;, data.frame$ID)-1) &amp; data$age&gt;60]
  </code></pre>
  <p>which apparently works, but looks awful and unintuitive. Is there a nicer solution/argument?</p>