R: Reverse a String

StrRev {DescTools} | R Documentation

## Reverse a String

### Description

Returns a string in reverse order.

### Usage

    StrRev(x)

### Arguments

`x` | a string to be processed.

### Value

string

### Author(s)

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")
    StrRev("Anna")

[Package DescTools version 0.99.36 Index]