Learn R Programming

bazar (version 1.0.11)

verlan: Back slang

Description

The verlan function reverses the order of the characters in a string.

Usage

verlan(x)

Arguments

x

character. A vector of strings.

Value

A character vector of the same length as x.

Examples

Run this code
# NOT RUN {
verlan("baba") ## "abab"
verlan(c("radar", "paul")) ## c("radar", "luap")

# }

Run the code above in your browser using DataLab