Description Usage Arguments Value Author(s)
A general replacement corruption function. Takes a value and a pool of values, and returns a random element from the pool. A built in corruption function, ready to be passed to corrupt data. Does not need to be passed to corrupt.factory.
1 | corrupt_replace(vals, error_rate = 0.2, ...)
|
error_rate |
The probability of the value being corrupted. Default is 2. |
val |
The value to be corrupted. Should be string |
pool |
A vector to pull the replacement values from. |
The value passed in, or a replaced value with probability error rate.
Sam Murray<slmurray@andrew.cmu.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.