get_transformation_trans_char: Randomly transpose two neighbouring characters.

Description Usage Arguments Value Examples

View source: R/make_generic_error.R

Description

get_transformation_trans_char randomly transpose two neighbouring characters of a string.

Usage

1

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

1
get_transformation_del('how are you?')

sdglinkage documentation built on April 27, 2020, 5:09 p.m.