sample_strings | R Documentation |
Sample a set of strings, each string of a given length
sample_strings(nchar = 3, size = 1, upper = FALSE)
nchar |
The length of each string. |
size |
The number of strings. |
upper |
Should the strings be upper case? |
A random vector of size
strings of length nchar
.
set.seed(42)
sample_strings()
d <- data.frame(key = sample_strings(7,9), value=1:9)
d[order(d$key),]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.