Learn R Programming

DescTools (version 0.99.54)

StrRev: Reverse a String

Description

Returns a string in reverse order.

Usage

StrRev(x)

Value

string

Arguments

x

a string to be processed.

Author

Andri Signorell <andri@signorell.net> solely copying R core code from strsplit example

See Also

String functions: nchar, match, grep, regexpr, substr, sub, gsub, StrTrunc, StrDist

Examples

Run this code
StrRev("home")
StrRev("Anna")

Run the code above in your browser using DataLab