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?')

haoyuanzhang1990/Synthetic-Data-Generation-for-Linkage-Methods-Development documentation built on April 21, 2020, 1 a.m.