Skip to contents

Does the input have names?

Usage

hasNames(x)

Arguments

x

Object.

Value

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

Note

Updated 2019-08-10.

See also

assertive.properties::has_names().

Examples

## TRUE ====
hasNames(datasets::mtcars)
#> [1] TRUE

## FALSE ====
hasNames(matrix())
#> [1] FALSE
hasNames(data.frame())
#> [1] FALSE