title: subsetting data frame based on search pattern in vector
body: <p>I've spent a few hours on a problem with subsetting data frame rows based on search pattern in a vector. I'm newbie in R. Maybe it's easy, but I can't do it myself, and I can't find a solution in stackoverflow</p>
  
  <p>Suppose that I've a mtcars data from R.</p>
  
  <p>I want to subset rows with a few cars name for example only Mazda, Ford and Chevrolet. So I have a character vector car.names with names of cars I want to subset:</p>
  
  <pre><code>car.names &lt;- c("Mazda", "Ford", "Chevrolet")
  </code></pre>
  
  <p>Question is: How to subset mtcars rows based on criteria in car.names?</p>