getzerorowcolnames_byname | R Documentation |
When a matrix has rows or columns full of zeroes, it is singular, and can't be inverted. This function returns the names of rows or columns that are full with zeroes.
getzerorowcolnames_byname(a, tol = 1e-06)
a |
A matrix or list of matrices. |
tol |
The allowable deviation from 0 for any element. |
A vector of names of zero rows or columns.
m <- matrix(c(1, 0, 1,
1, 0, 0,
0, 0, 0),
dimnames = list(c("r1", "r2", "r3"), c("c1", "c2", "c3")),
nrow = 3, ncol = 3, byrow = TRUE)
m
getzerorowcolnames_byname(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.