View source: R/strings_utils.R
gen_altnames | R Documentation |
Generates unique non matching alternative names
gen_altnames(
x,
n = 10,
forbidden = character(),
random_seed = list(seed = 252, "Mersenne-Twister", "Inversion", "Rounding")
)
x |
a character vector. |
n |
number of characters of the desired returned name. Default is 10. |
forbidden |
forbidden character vector. Default is character(). |
random_seed |
a list of elements to pass to set.seed or a single value, interpreted as an integer, or NULL. Default is list(seed = 0xFC, "Mersenne-Twister", "Inversion", "Rounding"). Note that NA_integer_ or list(seed = NA_integer_) can be used to not call set.seed at all. Note also that the default is chosen because it is compatible with old R version. |
'forbidden' should not encompass all possible returned value otherwise the function will never end.
a character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.