group_data_frame {oeli} | R Documentation |
Grouping of a data.frame
Description
This function groups a data.frame
according to values of one column.
Usage
group_data_frame(df, by, keep_by = TRUE)
Arguments
df |
A |
by |
A |
keep_by |
Either |
Value
A list
of data.frame
s, subsets of df
.
Examples
df <- data.frame("label" = c("A", "B"), "number" = 1:10)
group_data_frame(df = df, by = "label")
group_data_frame(df = df, by = "label", keep_by = FALSE)
[Package oeli version 0.5.2 Index]