powered by
Corrupt text with specified error type
corrupt_text(text, type = "random", position = NULL)
Character. Corrupted text
Character. Text to corrupt
Character. Type of corruption: "keyboard", "phonetic", "double", "truncate", "swap", "omit", "random"
Integer. Position for positional corruptions (NULL = random)
set.seed(42) corrupt_text("hello", type = "keyboard") corrupt_text("coverage", type = "truncate", position = 3)
Run the code above in your browser using DataLab