aggregateDf | R Documentation |
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 ";"
aggregateDf(df, groupBy)
df |
|
groupBy |
vector whose unique values indicates the grouping of the rows in the data frame |
aggregated data.frame
Fabian Mueller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.