Description Usage Arguments Value Examples
View source: R/func_strings-random.R
Generate random strings of any length using a combination of uppercase or lowercase letters and digits 0-9.
1 2 3 4 5 6 7 8 |
num_strings |
Number of strings |
length |
Length of strings |
digits |
Logical: TRUE and digits will be in string, FALSE and they won't. |
upperalpha |
Logical: TRUE and capital letters will be in string, FALSE and they won't. |
loweralpha |
Logical: TRUE and lowercase will be in string, FALSE and they won't. |
unique |
Logical: TRUE and strings will be unique, FALSE and they may not be. |
A character vector of random strings defined by the parameters as above.
1 | user_ids <- data.frame(id = rand_str(num_strings = 50))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.