Hello.
I wonder what is the tidyverse equivalent for this:
library(dplyr)
data("iris")
iris %>%
group_by(Species) %>%
select(Sepal.Length) %>%
do(broom::tidy(summary(.$Sepal.Length)))
This returns a nice clean df of grouped summary statistics. Works like a champ. The problem is, I stole the code somewhere on SO and I am somewhat reluctant to internalize it the way it is. Is there an elegant tidyverse solution to this, which I managed to ignore?
Thanks a lot!