BiocGenerics (version 0.18.0)

rep: Replicate elements of a vector-like object

Description replicates the elements in x.

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

Usage, times)


The object to replicate (typically vector-like).
See ? for a description of this argument.


See ? for the value returned by the default method.Specific methods defined in Bioconductor packages will typically return an object of the same class as the input object.

See Also

  • for the default, intersect, and setdiff methods.

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

  • selectMethod for getting the definition of a specific method.

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

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


Run this code
selectMethod("", "ANY")  # the default method

Run the code above in your browser using DataCamp Workspace