check-scalar-hasDimnames | R Documentation |
Does the input have dimnames?
hasDimnames(x)
hasColnames(x)
x |
Object. |
TRUE
on success;
FALSE
on failure, with cause set.
Updated 2023-09-29.
hasRownames()
.
assertive.properties::has_dimnames()
.
assertive.properties::has_colnames()
.
## TRUE ====
x <- datasets::mtcars
hasDimnames(x)
hasRownames(x)
hasColnames(x)
## FALSE ====
x <- data.frame()
hasDimnames(x)
hasRownames(x)
hasColnames(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.