summarizeMatrix | R Documentation |
Groups 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,
...
)
mat |
matrix where the columns (e.g., samples) are going to be grouped |
group |
vector of length dim(mat)[2] corresponding to the groups |
scale |
either 'none' (default),'row', or 'column' |
scaleQuantile |
what quantile of value should be set as 1 (default=1) |
binarize |
should the data be binarized? (default=FALSE) |
binMin |
minimum ON value for the binarized matrix (ignored if binarize=FALSE) |
summaryFunction |
function (or function name) to be used for summarization |
... |
additional parameters for summaryFunction |
matrix of summarized values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.