Shrink data.frame by group
shrink_df(
df,
by,
string_func = jamba::cPasteU,
num_func = mean,
extra_funcs = NULL,
do_test = FALSE,
verbose = FALSE,
...
)
This function condenses a data.frame
by groups of rows,
applying an appropriate function to character
columns,
and numeric
columns. It is intended to be a simple but
configurable tool for the majority of scenarios.
This function uses data.table
for overall speed.
Other venndir utility:
curate_venn_labels()
,
expand_range()
,
make_color_contrast()
,
make_venn_combn_df()
,
make_venn_test()
,
match_list()
,
nudge_venndir_label()
,
print_color_df()
,
three_point_angle()
,
venndir_legender()
,
venndir_to_df()