is.names returns whether elements of a character vector are names of an object.
Usage
is.names(nm, x)
Value
TRUE for every element of `nm` that is a name of `x` and FALSE otherwise.
The structure is a logical vector with length = length(`nm`) and names = `nm`.
See details for special cases.
Arguments
nm
character vector.
x
object whose names are desired to be tested.
Details
If the object does not have any names, then the function will return `FALSE`
for each element `nm`.