str_rev: Reverse a Vector of Strings

Description Usage Arguments Details See Also Examples

View source: R/str_rev.R

Description

Reverses a vector of 'strings' (a character vector). Not safe for unicode (UTF-8) characters.

Usage

1

Arguments

x

a character vector.

Details

This function is written in C for fast execution; however, we do not handle non-ASCII characters. For a 'safe' version of str_rev that handles unicode characters, see str_rev2.

See Also

str_rev2

Examples

1
2
x <- c("ABC", "DEF", "GHIJ")
str_rev(x)

Kmisc documentation built on May 29, 2017, 1:43 p.m.

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