shrinkDataFrame | R Documentation |
Shrink data.frame by row groups
shrinkDataFrame(
x,
groupBy,
na.rm = TRUE,
stringShrinkFunc = function(x) jamba::cPasteSU(x, na.rm = TRUE),
numShrinkFunc = function(x) {
mean(x, na.rm = TRUE)
},
addStringCols = NULL,
stringToNumFunc = as.character,
keepNAgroupBy = TRUE,
includeNumReps = FALSE,
collapseMethod = 2,
applyKeepCols = TRUE,
verbose = FALSE,
...
)
Purpose is to take a data.frame with multiple column classes, and a groupBy key, and to collapse multiple rows per key into one row per key.
Other jamses utilities:
fold_to_log2fold()
,
log2fold_to_fold()
,
mark_stat_hits()
,
se_collapse_by_column()
,
se_collapse_by_row()
,
se_rbind()
,
shrink_df()
,
strsplitOrdered()
,
sub_split_vector()
,
update_function_params()
,
update_list_elements()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.