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"))

OpenRepGrid documentation built on May 31, 2023, 5:33 p.m.