summarizeMatrix.RdGroups columns in a matrix by a specified group vector and summarizes using a specificed function. Optionally binarizes the matrix using a specified cutoff parameter. This is a wrapper for tapply.
summarizeMatrix(
mat,
group,
scale = "none",
scaleQuantile = 1,
binarize = FALSE,
binMin = 0.5,
summaryFunction = median,
...
)matrix where the columns (e.g., samples) are going to be grouped
vector of length dim(mat)[2] corresponding to the groups
either 'none' (default),'row', or 'column'
what quantile of value should be set as 1 (default=1)
should the data be binarized? (default=FALSE)
minimum ON value for the binarized matrix (ignored if binarize=FALSE)
function (or function name) to be used for summarization
additional parameters for summaryFunction
matrix of summarized values