powered by
A function for generating a character vector of random strings, for testing purposes.
randomStrings(N, string_size)
The number of random strings to generate
The number of characters in each string (default 50).
A character vector of random alpha-numeric strings.
# NOT RUN { randomStrings(N=10, string_size=20) # returns 10 alphanumeric strings of length 20 randomStrings(N=100, string_size=200) # returns 100 alphanumeric strings of length 200 # }
Run the code above in your browser using DataLab