.rndstr | R Documentation |
Generate a vector of random alphanumeric strings each of an arbitrary length.
.rndstr(n = 1, len = 8)
rndstr(n, len, characterFirst)
## S4 method for signature 'numeric,numeric,logical'
rndstr(n, len, characterFirst)
## S4 method for signature 'numeric,numeric,missing'
rndstr(n, len)
## S4 method for signature 'numeric,missing,logical'
rndstr(n, characterFirst)
## S4 method for signature 'missing,numeric,logical'
rndstr(len, characterFirst)
## S4 method for signature 'numeric,missing,missing'
rndstr(n)
## S4 method for signature 'missing,numeric,missing'
rndstr(len)
## S4 method for signature 'missing,missing,logical'
rndstr(characterFirst)
## S4 method for signature 'missing,missing,missing'
rndstr(n, len, characterFirst)
n |
Number of strings to generate (default 1). Will attempt to coerce to integer value. |
len |
Length of strings to generate (default 8). Will attempt to coerce to integer value. |
characterFirst |
Logical, if |
Character vector of random strings.
Alex Chubaty and Eliot McIntire
set.seed(11)
rndstr()
rndstr(len = 10)
rndstr(characterFirst = FALSE)
rndstr(n = 5, len = 10)
rndstr(n = 5)
rndstr(n = 5, characterFirst = TRUE)
rndstr(len = 10, characterFirst = TRUE)
rndstr(n = 5, len = 10, characterFirst = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.