has_names: Check, whether a matrix has row- and colnames.

has_namesR 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)


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