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

Description Usage Arguments Value Examples

View source: R/strtools.R

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"

tcR documentation built on May 19, 2017, 9:48 p.m.

Search within the tcR package
Search all R packages, documentation and source code