Reverse a Vector of Strings

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)

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