check_names | R Documentation |
Throw an error, if a matrix has not both row- and colnames.
check_names(m)
m |
A matrix. |
Throws error, if matrix has no row- and column names.
m <- matrix(c(1,2,3,4), nrow=2) rownames(m) <- c("r1", "r2") colnames(m) <- c("c1", "c2") check_names(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.