BiocGenerics (version 0.18.0)

append: Append elements to a vector-like object


Append (or insert) elements to (in) a vector-like object.

NOTE: This man page is for the append S4 generic function defined in the BiocGenerics package. See ?base::append for the default method (defined in the base package). Bioconductor packages can define specific methods for objects (typically vector-like or data-frame-like) not supported by the default method.


append(x, values, after=length(x))


The vector-like object to be modified.
The vector-like object containing the values to be appended to x. values would typically be of the same class as x, but not necessarily.
A subscript, after which the values are to be appended.


See ?base::append for the value returned by the default method.Specific methods defined in Bioconductor packages will typically return an object of the same class as x and of length length(x) + length(values).

See Also

  • base::append for the default append method.

  • showMethods for displaying a summary of the methods defined for a given generic function.

  • selectMethod for getting the definition of a specific method.

  • append,Vector,Vector-method in the S4Vectors package for an example of a specific append method (defined for Vector objects).

  • BiocGenerics for a summary of all the generics defined in the BiocGenerics package.


Run this code
append  # note the dispatch on the 'x' and 'values' args only
selectMethod("append", c("ANY", "ANY"))  # the default method

Run the code above in your browser using DataCamp Workspace