| corrupt_text | R Documentation |
Corrupt text with specified error type
corrupt_text(text, type = "random", position = NULL)
text |
Character. Text to corrupt |
type |
Character. Type of corruption: "keyboard", "phonetic", "double", "truncate", "swap", "omit", "random" |
position |
Integer. Position for positional corruptions (NULL = random) |
Character. Corrupted text
set.seed(42)
corrupt_text("hello", type = "keyboard")
corrupt_text("coverage", type = "truncate", position = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.