edit_dist1_example {RPatternJoin} | R Documentation |
Generate Example Strings with Edit Distance 1
Description
This function generates a random list of num_strings = 5n
strings
such that each of n
strings has one duplicate, one string with a deleted letter,
one string with an inserted letter, and one string with a substituted letter.
Usage
edit_dist1_example(avg_len = 25, num_strings = 5000)
Arguments
avg_len |
Average length of the strings. |
num_strings |
Number of strings to generate. |
Value
A character vector of generated strings.
See Also
[Package RPatternJoin version 1.0.0 Index]