Learn R Programming

tcR (version 2.2.4)

reverse.string: Reverse given character vector by the given n-plets.

Description

Reverse given character vector by the given n-plets.

Usage

reverse.string(.seq, .n = 1)

Arguments

.seq

Sequences.

.n

By which n-plets we should reverse the given strings.

Value

Reversed strings.

Examples

Run this code
# NOT RUN {
reverse.string('abcde')  # => "edcba"
reverse.string('abcde', 2)  # => "debca"
# }

Run the code above in your browser using DataLab