strReverse: reverse a string

View source: R/utils.r

strReverseR Documentation

reverse a string

Description

reverses the strings of a vector, i.e. c("ABC", "abc") becomes c("CBA", "cba")

Usage

strReverse(x)

Arguments

x

a string or a vector of strings

Value

vector a string or vector of strings with reversed chars

Examples

strReverse(c("ABC", "abc"))

markheckmann/OpenRepGrid documentation built on April 14, 2024, 8:15 a.m.