title: Using dplyr::filter, how can the output be limited to just first 500 rows?
body: <p>dplyr is a great and fast library.</p>
  
  <p>Using the %>% operator enables powerful manipulation.</p>
  
  <p>In my first step, I need to limit the output to only 500 rows max (for display purposes).</p>
  
  <p>How can I do that?</p>
  
  <pre><code>par&lt;-filter(pc,Child_Concept_GID==as.character(mcode)) %&gt;% select(Parent_Concept_GID)
  </code></pre>
  
  <p>what I need is something like</p>
  
  <pre><code>filter(pc,CONDITION,rows=500)
  </code></pre>
  
  <p>Is there direct way or a nice workaround without making the first step a separate step (outside the %>% "stream")</p>