check_names {mosbi} | R 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)

[Package mosbi version 1.0.3 Index]