corrupt.character: corrupt.string

Description Usage Arguments Value Author(s)

Description

A general string corruption function. Either adds, deletes, or substitutes single characters in the string. The number of insertions, deletions, and replacements is generated from the normal, scaled by scale. A built in corruption function, ready to be passed to corrupt data. Does not need to be passed to corrupt.factory.

Usage

1
corrupt.character(val, error_rate = 0.2, ...)

Arguments

val

The value to be corrupted. Should be string

error_rate

The probability of the value being corrupted. Default is 2.

scale

The scale applied to the error.

Value

The value passed in, or a corrupted value with probability error rate.

Author(s)

Sam Murray<slmurray@andrew.cmu.edu>


Sam-Murray/RecordLinkUtil documentation built on Oct. 30, 2019, 11:48 p.m.