Skip to contents

Checks if an object is named.

Usage

has_names(x, names = NULL)

has_rownames(x, names = NULL)

has_colnames(x, names = NULL)

Arguments

x

A vector to be tested.

names

A character vector specifying the names to test x with. If NULL, returns TRUE if x has names, and FALSE otherwise.

Value

A logical scalar.