title: Subsetting with base R
body: <p>I want to satisfy two conditons in the mtcars data set.</p>
  
  <ul>
  <li>CYL needs to equal 4 and CARB needs to be less than 2</li>
  <li>HP needs to be greater than 100 or MPG needs to be greater than 30</li>
  </ul>
  
  <p>The following expression does not get me there. Because the following syntax is wrong. What's the correct syntax? I know how to accomplish this properly with dplyr but want to learn how to do this with base R.</p>
  
  <pre><code>subset(mtcars, 
    cyl == 4 &amp; 
    carb &lt; 2 &amp; 
    hp &gt; 100 | 
    mpg &gt; 30
  )
  </code></pre>