powered by
Group a data.frame by chosen columns
group_by_(df, group = NULL)
data.frame
formula that describes the group
The function returns a list. Each element of the list is a subset of data frame df. Subset is determined by variables given in group. Each data frame get the following properties:
df
group
Columns are not modified.
Only rows corresponding to the subset.
Data frame attributes are preserved.
# NOT RUN { tmp <- group_by_(CO2,~c(Type,Treatment)) tmp[[1]] # }
Run the code above in your browser using DataLab