Closed jl5000 closed 5 years ago
When we published the book, this change to dplyr (count()
now preserves grouping) was barely released so we made sure to write code that would work with both with pre-0.7.0 dplyr and the 0.7.0 release of dplyr. It's been a year and a half now, so it's probably safe to switch over to only support the updated dplyr.
You shouldn't need to ungroup after count.