stri_reverse: Reverse Each String

Description Usage Arguments Details Value Examples

Description

Reverses characters in every string.

Usage

1

Arguments

str

character vector

Details

Note that this operation is not very intelligent – it just reverses the order of all Unicode code points. It may result in non-Unicode-normalized strings and may give strange output for bidirectional strings.

Value

Returns a character vector.

Examples

1
2
3
4
5
6
stri_reverse(c("123", "abc d e f"))
stri_reverse("ZXY (\u0105\u0104123$^).")
## Not run: 
stri_reverse(stri_enc_nfd('\u0105')) == stri_enc_nfd('\u0105') # A, ogonek -> agonek, A

## End(Not run)


Search within the stringi package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.