Learn R Programming

stackoverflow (version 0.7.0)

strReverse: Reverse each string of a vector

Description

A function which will reverse every string in a vector of strings.

Usage

strReverse(x)

Arguments

x

a character vector

References

https://stackoverflow.com/questions/13612967/how-to-reverse-a-string-in-r

Examples

Run this code
# NOT RUN {
strReverse(c("abc", "Statistics"))
# }

Run the code above in your browser using DataLab