Learn R Programming

arkhe (version 1.10.0)

predicate-names: Names Predicates

Description

Checks if an object is named.

Usage

has_names(x, names = NULL)

has_rownames(x, names = NULL)

has_colnames(x, names = NULL)

Value

A logical scalar.

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.

See Also

Other predicates: is_scalar, predicate-attributes, predicate-data, predicate-matrix, predicate-numeric, predicate-trend, predicate-type