revChar: Rev (reverse the order) for character strings.

Description Usage Arguments Value Examples

Description

Like rev in Haskell when applied to a string. When applied to a vector of strings, reverses each string but maintains their order. That's why it's not called "rev.character": to avoid having to use rev.default everywhere else.

Usage

1

Arguments

x

[character] String or a vector of strings to be reversed.

Value

[character] Reversed string or a vector of reversed strings in the original order.

Examples

1
soundcorrs:::revChar (c("kayak", "madam", "racecar"))

soundcorrs documentation built on Nov. 16, 2020, 5:09 p.m.