has_names {mosbi} | R Documentation

## Check, whether a matrix has row- and colnames.

### Description

Check, whether a matrix has row- and colnames.

### Usage

    has_names(m)

### Arguments

`m` | A matrix

### Value

Logical indicating existence of row- and colnames.

### Examples

    has_names(matrix(c(1,2,3,4), nrow=2))

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

[Package mosbi version 1.0.3 Index]