title: How to subset your dataframe to keep first 3 duplicate rows in R?
body: <p>I have a table in the following form</p>
  <p><img src="https://i.stack.imgur.com/qLqI8.png" alt="enter image description here" /></p>
  <p>I want to keep only the first 3 rows based on duplicate values of V1 &amp; V@ like below:</p>
  <p><img src="https://i.stack.imgur.com/WSeS6.png" alt="enter image description here" /></p>
  <p>df %&gt;% distinct(V1,V2) only let me keep the first row.</p>