title: Compare values within list of rows in R
body: <p>I've identified a list of row numbers in a large data frame using the following:</p>
  
  <pre><code>brownturkey_rows &lt;- grep("brown",Dataframe$color)
  </code></pre>
  
  <p>For which I get</p>
  
  <pre><code>brownturkey_rows int [1:5] 3 6 7 8 9
  </code></pre>
  
  <p>Now I need to check a certain condition in each of those rows and return which rows fail. For example looking at row 6:</p>
  
  <pre><code>Dataframe$age[6] &lt; Dataframe$limit[6] 
  </code></pre>
  
  <p>In perl, I would have used a foreach loop. What is the best way to do this in R?</p>