Methods to set the names of an annotated vector. If names are specified for an unnamed annotated_vector, its class is changed to the corresponding class from annotated_named_vector-superclass.
# S4 method for annotated_vector,ANY
names(x) <- value# S4 method for annotated_named_vector,ANY
names(x) <- value
An annotated vector.
A character vector of the same length as x, or NULL.
See names
for details. If the names of an object of an
annotated_named_vector are removed by setting names(x) <- NULL
, it
is coerced to the corresponding class from annotated_vector-superclasses
(i.e., an annotated vector without a names slot).