binarizeMatrix {Binarize} | R Documentation |
Utility function to binarize a matrix of measurements
Description
Binarizes a matrix of measurements all at once, and returns the binarized vectors as well as the binarization thresholds and the p-values.
Usage
binarizeMatrix(mat,
method = c("BASCA", "BASCB", "kMeans"),
adjustment = "none",
...)
Arguments
mat |
A n x m matrix comprising m raw measurements of n features. |
method |
The binarization algorithm to be used. |
adjustment |
Specifies an optional adjustment for multiple testing that is applied to the p-values (see |
... |
Further parameters that are passed to the respective binarization methods ( |
Value
A n x (m+2) matrix of binarized measurements. Here, the first m columns correspond to the binarized measurements. The m+1-st column comprises the binarization thresholds for the features, and the m+2-nd column contains the p-values.
See Also
binarize.BASC
, binarize.kMeans
, p.adjust
Examples
bin <- binarizeMatrix(t(iris[,1:4]))
print(bin)