title: count after summarize in r
body: <p>I want to find the total number of <code>species</code> for each <code>size</code> after the filter statement. I tried using again the summarise statement but was not able to do it.</p>
  <pre><code>library(dplyr)
  x &lt;- iris
  x$size &lt;- cut(iris$Petal.Length,breaks = c(1,2,3,4,5,6,7),include.lowest = T)
  
  y &lt;- x %&gt;% 
    group_by(size, Species) %&gt;% 
    summarise(n = n())%&gt;%
    filter(n &gt;2)
  </code></pre>
  <p>What is the way to achieve this?</p>