Description
Most data operations are useful done on groups defined by variables in the the dataset. The group_by
function takes an existing tbl and converts it into a grouped tbl where operations are performed "by group".
通过数据集中的变量构造分组是非常有用的。group_by函数接受现有的资源并将其转换为一个分组
group_by接受一下集中数据类型
-
data.frame: grouped_df
-
data.table: grouped_dt
-
SQLite: