| blockNames<- | R Documentation |
Set the block names of a MultiBlock object. Renames the Data and Variables slots, and updates Batch and Metadata names to stay consistent.
blockNames(x) <- value
## S4 replacement method for signature 'MultiBlock'
blockNames(x) <- value
x |
A MultiBlock object. |
value |
A character vector of new block names (same length as the number of blocks). |
The updated MultiBlock object.
b1 <- matrix(rnorm(500), 10, 50)
b2 <- matrix(rnorm(800), 10, 80)
mb <- MultiBlock(Data = list(b1 = b1, b2 = b2))
blockNames(mb) <- c("block1", "block2")
blockNames(mb) # c("block1", "block2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.