Returns a string in reverse order.

StrRev(x)

Arguments

x

a string to be processed.

Value

string

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

StrRev("home")
#> [1] "emoh"
StrRev("Anna")
#> [1] "annA"