splitFunMerge: Split, Function and Merge

Description Usage Arguments Value

View source: R/misc_utils.R

Description

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.

Usage

1
splitFunMerge(df, splitCol, fun, addSplitCol = FALSE)

Arguments

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?

Value

The processed data frame.


martingarrido/biokit documentation built on June 27, 2021, 2:21 a.m.