title: How to grep only 10 matches in R?
body: <p>I have a data file where I can grep "you":</p>
  
  <pre><code>&gt; dtq_ml_wuv[grep("you", dtq_ml_wuv$rn), "rn"]
  
  "you can take"         "you can tell"         "you can thank"       
  "you can try"          "you can turn"         "you can use"         
  "you can visit"        "you can work"         "you donet know"      
  "you donet need"       "you dont know"        "you get enough"      
  "you get see"          "you go back"          "you got keep"        
  "you guys can"         "you heard right"      "you just go"         
  "you just gotta"       "you just look"        "you just need"       
  "you just stay"        "you know better"      "you know else"       
  "you know got"         "you know i"           "you know if"         
  "you know im"          "you know it"          "you know just"       
  "you know many"        "you know means"       "you know one"        
  "you know really"      "you know right"       "you like see"    
  </code></pre>
  
  <p>How can I get <code>grep</code> to <strong>stop</strong> after it found, say 0 to 25 matches?</p>
  
  <p>I tried</p>
  
  <pre><code>&gt; dtq_ml_wuv[grep("you{0, 25}", dtq_ml_wuv$rn), "rn"]
  </code></pre>
  
  <p>But it's telling me the expression is invalid because of invalid content of <code>{}</code>.</p>
  
  <p>Any hints are appreciated.</p>