collapse | R Documentation |
Collapse duplicate ids
collapse(
data,
ids,
select_by = NULL,
average_by = NULL,
decreasing = TRUE,
...
)
data |
matrix/data.frame |
ids |
vector of row identifiers |
select_by |
FUN for calculating stat by which duplicates are selected (applied to each row) |
average_by |
FUN for calculating averages of duplicate rows |
decreasing |
sort selecting stat increasingly/decreasingly (default = TRUE) |
... |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.