Learn R Programming

sdglinkage (version 0.1.0)

get_transformation_trans_char: Randomly transpose two neighbouring characters.

Description

get_transformation_trans_char randomly transpose two neighbouring characters of a string.

Usage

get_transformation_trans_char(string)

Arguments

string

A string.

Value

It returns the string with two of the neighbouring characters were randomly transposed. It also comes with the change log of the transformation.

Examples

Run this code
# NOT RUN {
get_transformation_del('how are you?')

# }

Run the code above in your browser using DataLab