I\'m fooling around with babynames pkg. A group_by command works, but after the summarize, one of the groups is dropped from the group
babynames
group_by
summarize
The behavior is noted in the documentation see ?summarise Value section:
?summarise
Value An object of the same class as .data. One grouping level will be dropped.
.data
In contrast, mutate does not drop any grouping levels:
mutate
Value: An object of the same class as .data.