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/r-goalie documentation built on Jan. 12, 2024, 4:15 a.m.