str_reverse: Reverse strings by code point

View source: R/reverse.R

str_reverseR Documentation

Reverse strings by code point

Description

str_reverse() reverses the order of the Unicode code points in each string.

Usage

str_reverse(string)

Arguments

string

Input vector. Either a character vector, or something coercible to one.

Value

A character vector the same length as string.

See Also

stringi::stri_reverse() for the underlying implementation.

Examples

str_reverse(c("abc", "caf\u00e9", NA))

charr documentation built on Nov. 7, 2026, 9:06 a.m.