Learn R Programming

Kmisc (version 0.5.0)

str_rev2: Reverse a Vector of Strings (UTF-8)

Description

Reverses a vector of 'strings' (a character vector). This will safely reverse a vector of unicode (UTF-8) characters.

Usage

str_rev2(x)

Arguments

x
a character vector.

Details

This function will handle UTF-8 characters safely. If you are working only with ASCII characters and require speed, see str_rev2.

See Also

str_rev

Examples

Run this code
x <- c("ABC", "DEF", "GHIJ")
str_rev(x)

Run the code above in your browser using DataLab