check-scalar-hasDimnames: Does the input have dimnames?

check-scalar-hasDimnamesR Documentation

Does the input have dimnames?

Description

Does the input have dimnames?

Usage

hasDimnames(x)

hasColnames(x)

Arguments

x

Object.

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2023-09-29.

See Also

  • hasRownames().

  • assertive.properties::has_dimnames().

  • assertive.properties::has_colnames().

Examples

## TRUE ====
x <- datasets::mtcars
hasDimnames(x)
hasRownames(x)
hasColnames(x)

## FALSE ====
x <- data.frame()
hasDimnames(x)
hasRownames(x)
hasColnames(x)

acidgenomics/goalie documentation built on Dec. 11, 2023, 11:36 p.m.