Description Usage Arguments Value See Also Examples
View source: R/combine-groups.R
Combine values from different groups if specific groups only have a low contribution to the overall value.
1 2 | combine_groups(data, group_col, groups = names(data)[!is.element(names(data),
c("atoutput", "time", group_col))], combine_thresh = 15)
|
data |
Dataframe whose groups shall be combined. |
group_col |
Character string giving the name of the group column in 'data'. |
groups |
Vector of character strings giving the grouping variables. |
combine_thresh |
Integer indicating the number of groups to display. Default is |
dataframe with groups combined to "Rest" if contribution is low.
Other combine functions: combine_runs
1 2 | df <- combine_groups(ref_dm, group_col = "prey")
df <- combine_groups(ref_dm, group_col = "prey", combine_thresh = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.