rep {BiocGenerics}R Documentation

Replicate elements of a vector-like R object

Description

rep.int replicates the elements in x.

NOTE: This man page is for the rep.int S4 generic function defined in the BiocGenerics package. See ?base::rep.int 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

## Unlike the standard rep.int() function defined in base (default method),
## the generic function described here have a '...' argument (instead of
## 'times').
rep.int(x, ...)

Arguments

x

R object (typically vector-like).

...

Additional arguments, for use in specific rep.int methods.

Value

See ?base::rep.int for the value returned by the default method.

Specific methods defined in other Bioconductor packages will typically return an object of the same class as the input object.

See Also

base::rep.int for the default rep.int, 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.

rep.int,Rle-method in the IRanges package for the method defined for Rle objects.

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

Examples

rep.int
showMethods("rep.int")
selectMethod("rep.int", "ANY")  # the default method

[Package BiocGenerics version 0.2.0 Index]