Splits the input data frame using a grouping column, applies the provided function over each list element and return the row-binded resulting data frame.
splitFunMerge(df, splitCol, fun, addSplitCol = FALSE)
| df | Data frame to process. |
|---|---|
| splitCol | Column to split by. |
| fun | Function to be applied to each sub-data frame. |
| addSplitCol | Include a column with splitting variable id? |
The processed data frame.