Why does `summarize` drop a group?

后端 未结 1 842
时光取名叫无心
时光取名叫无心 2021-01-13 15:51

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

相关标签:
1条回答
  • 2021-01-13 16:21

    The behavior is noted in the documentation see ?summarise Value section:

    Value An object of the same class as .data. One grouping level will be dropped.


    In contrast, mutate does not drop any grouping levels:

    Value: An object of the same class as .data.

    0 讨论(0)
提交回复
热议问题