View source: R/NormalizeMultiBlock.R
| NormalizeMultiBlock | R Documentation |
Normalize all blocks from a MultiBlock object. The ranknorm transform is based on that from the RNOmni package (doi:10.1111/biom.13214).
NormalizeMultiBlock(
MB,
blocks = NULL,
method = c("none", "auto", "mean", "pareto", "norm", "geometric", "ranknorm")[5],
infinite.as.NA = FALSE,
constant = 0,
offset = 3/8,
showWarning = TRUE
)
MB |
The MultiBlock object. |
blocks |
Blocks to normalize. A vector of integers or block names (optional; all blocks are processed when omitted). |
method |
Normalization method. One of: |
infinite.as.NA |
If |
constant |
For |
offset |
For |
showWarning |
If |
The normalized MultiBlock object.
b1 <- matrix(rnorm(500), 10, 50)
b2 <- matrix(rnorm(800), 10, 80)
b2[c(2, 3, 5), c(1, 2, 3)] <- NA
mb <- MultiBlock(Data = list(b1 = b1, b2 = b2))
mb <- NormalizeMultiBlock(mb, method = "auto")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.