check_names: Throw an error, if a matrix has not both row- and colnames.

check_namesR Documentation

Throw an error, if a matrix has not both row- and colnames.

Description

Throw an error, if a matrix has not both row- and colnames.

Usage

check_names(m)

Arguments

m

A matrix.

Value

Throws error, if matrix has no row- and column names.

Examples

m <- matrix(c(1,2,3,4), nrow=2)
rownames(m) <- c("r1", "r2")
colnames(m) <- c("c1", "c2")
check_names(m)


tdrose/mosbi documentation built on May 4, 2022, 3:22 p.m.