View source: R/BuildMultiBlock.R
BuildMultiBlock | R Documentation |
BuildMultiBlock Creates a MultiBlock object
BuildMultiBlock(..., ignore.names = FALSE, ignore.size = FALSE)
... |
Data.frames, matrices, or MultiBlocks to be combined. |
ignore.names |
The MultiBlock is created without checking the sample names. Names are replaced by integers. Useful when the nomenclature to name samples is not consistent across blocks but there exist sample correspondence across blocks. |
ignore.size |
The MultiBlock is created without checking the sample size. This is set as TRUE when dealing with replicate data and we want to consider each replicate batch as a stand alone block. See SplitRW(). |
The MultiBlock.
b1 = matrix(rnorm(500),10,50) # 10 rows and 50 columns
b2 = as.data.frame(matrix(rnorm(800),10,80)) # 10 rows and 80 columns
b3 = new("MultiBlock", Samples = 1:10, Data = list(s1 = b1, s2 = b1),
Variables = list(s1 = 1:ncol(b1), s2 = letters[1:length(b1)]))
# Build MultiBlock by adding one data block at a time:
mb <- BuildMultiBlock(b1, b2, b3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.