abs_byname | R Documentation |
Absolute value of matrix elements
abs_byname(a)
a |
a matrix or list of matrices |
a with each element replaced by its absolute value
abs_byname(1) abs_byname(-1) m <- matrix(c(-10,1,1,100), nrow = 2, dimnames = list(paste0("i", 1:2), paste0("c", 1:2))) %>% setrowtype("Industry") %>% setcoltype("Commodity") abs_byname(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.