Learn R Programming

papaja (version 0.1.0.9655)

names<-,annotated_vector,ANY-method: The Names of an Annotated Vector

Description

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.

Usage

# S4 method for annotated_vector,ANY
names(x) <- value

# S4 method for annotated_named_vector,ANY names(x) <- value

Arguments

x

An annotated vector.

value

A character vector of the same length as x, or NULL.

Details

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).