invert_byname | R Documentation |
This function transposes row and column names as well as row and column types.
Rows and columns of a
are sorted prior to inverting.
invert_byname(a)
a |
the matrix to be inverted. |
the inversion of a
m <- matrix(c(10,0,0,100), nrow = 2, dimnames = list(paste0("i", 1:2), paste0("c", 1:2))) %>% setrowtype("Industry") %>% setcoltype("Commodity") invert_byname(m) matrixproduct_byname(m, invert_byname(m)) matrixproduct_byname(invert_byname(m), m) invert_byname(list(m,m))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.