Does the input have names?
Examples
## TRUE ====
hasNames(datasets::mtcars)
#> [1] TRUE
## FALSE ====
hasNames(matrix())
#> [1] FALSE
hasNames(data.frame())
#> [1] FALSE
Does the input have names?
## TRUE ====
hasNames(datasets::mtcars)
#> [1] TRUE
## FALSE ====
hasNames(matrix())
#> [1] FALSE
hasNames(data.frame())
#> [1] FALSE