Reverse given character vector by the given n-plets.

Share:

Description

Reverse given character vector by the given n-plets.

Usage

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

Arguments

.seq

Sequences.

.n

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

Value

Reversed strings.

Examples

1
2
reverse.string('abcde')  # => "edcba"
reverse.string('abcde', 2)  # => "debca"

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.