aggregateDf: aggregateDf

View source: R/wrappers.R

aggregateDfR Documentation

aggregateDf

Description

Wrapper around aggregate to merge rows of a data frame based on a specified grouping. Merging is done by either returning the unique value for each group or if multiple different values exists converting them to character and concatenating by ";"

Usage

aggregateDf(df, groupBy)

Arguments

df

data.frame to aggregate

groupBy

vector whose unique values indicates the grouping of the rows in the data frame

Value

aggregated data.frame

Author(s)

Fabian Mueller


demuellae/muRtools documentation built on Sept. 8, 2023, 4:32 p.m.