Reverse an XVector or XVectorList object
Methods for reversing an XVector or XVectorList object.
## S4 method for signature 'XVector' reverse(x, ...) ## S4 method for signature 'XVectorList' reverse(x, ...)
x |
An XVector or XVectorList object. |
... |
Additional arguments. Currently ignored. |
On an XVectorList object, reverse
reverses each element
individually, without modifying the top-level order of the elements.
It's equivalent to, but more efficient than, doing endoapply(x, rev)
.
An object of the same class and length as the original object.
## On an XInteger object: x <- as(12:-2, "XInteger") reverse(x) ## On an XIntegerViews object: v <- successiveViews(x, 1:5) v reverse(v) ## On an XVectorList object: if (require(Biostrings) && require(drosophila2probe)) { library(Biostrings) library(drosophila2probe) probes <- DNAStringSet(drosophila2probe) reverse(probes) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.