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

Description Usage Arguments Details

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 replacement method for signature 'annotated_vector,ANY'
names(x) <- value

## S4 replacement method for signature 'annotated_factor,ANY'
names(x) <- value

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

## S4 replacement method for signature 'annotated_named_factor,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).


mariusbarth/annotate4 documentation built on May 7, 2019, 3:14 p.m.