Learn R Programming

DescTools (version 0.99.19)

StrRev: Reverse a String

Description

Returns a string in reverse order.

Usage

StrRev(x)

Arguments

x
a string to be processed.

Value

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