mergeNamedArrays | R Documentation |
Merge List of Named Arrays
mergeNamedArrays(x, check_dim = TRUE)
x |
list of arrays of the same dimension |
check_dim |
logical. If |
a1 <- array(
1:12,
dim = c(2, 4, 2),
dimnames = list(paste0("x", 1:2), paste0("y", 1:4), paste0("z", 1:2))
)
a2 <- array(
11:16,
dim = c(1, 3, 2),
dimnames = list("x3", paste0("y", 2:4), paste0("z", 1:2))
)
mergeNamedArrays(list(a1, a2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.