title: How to keep only unique rows but ignore a column?
body: <p>If I have this data:</p>
  
  <pre><code>df1 &lt;- data.frame(name = c("apple", "apple", "apple", "orange", "orange"),
         ID = c(1, 2, 3, 4, 5),
         is_fruit = c("yes", "yes", "yes", "yes", "yes"))
  </code></pre>
  
  <p>and I want to keep only the unique rows, but ignore the <code>ID</code> column such that the output looks like this:</p>
  
  <pre><code>df2 &lt;- data.frame(name = c("apple", "orange"),
         ID = c(1, 4),
         is_fruit = c("yes", "yes"))
  
  df2
  #    name ID is_fruit
  #1  apple  1      yes
  #2 orange  4      yes
  </code></pre>
  
  <p>How can I do this, ideally with <code>dplyr</code>?</p>