Skip to contents

Reverse complements a sequence.

Usage

revcomp(x)

Arguments

x

A sequence to reverse complement

Value

The sequence, reverse complemented

Examples

revcomp("GATTACA")
#> [1] "TGTAATC"
sapply(c("GATTACA", "CATATTAC"), revcomp)
#>    GATTACA   CATATTAC 
#>  "TGTAATC" "GTAATATG"