A function that generates random strings
Usage
random_strings(N, string_size = 50, charset = "abcdefghijklmnopqrstuvwxyz",
vector_mode = "stringfish")Details
The function uses the PCRE2 library, which is also used internally by R. Note: the order of paramters is switched compared to the `gsub` base R function, with subject being first. See also: https://www.pcre.org/current/doc/html/pcre2api.html for more documentation on match syntax.
Examples
if(getRversion() >= "3.5.0") {
set.seed(1)
x <- random_strings(1e6, 80, "ACGT", vector_mode = "stringfish")
}