Learn R Programming

OpenRepGrid (version 0.1.16)

strReverse: reverse a string

Description

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

Usage

strReverse(x)

Value

vector a string or vector of strings with reversed chars

Arguments

x

a string or a vector of strings

Examples

Run this code
strReverse(c("ABC", "abc"))

Run the code above in your browser using DataLab