transpose_byname | R Documentation |
Gives the transpose of a matrix or list of matrices.
transpose_byname(a)
a |
The matrix to be transposed. |
The transposed matrix.
m <- matrix(c(11,21,31,12,22,32), ncol = 2, dimnames = list(paste0("i", 1:3), paste0("c", 1:2))) %>%
setrowtype("Industry") %>% setcoltype("Commodity")
m
transpose_byname(m)
transpose_byname(list(m,m))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.