gen_char {baizer} | R Documentation |
generate characters
Description
generate characters
Usage
gen_char(
from = NULL,
to = NULL,
n = NULL,
random = FALSE,
allow_dup = TRUE,
add = NULL,
seed = NULL
)
Arguments
from |
left bound, lower case letter |
to |
right bound, lower case letter |
n |
number of characters to generate |
random |
random generation |
allow_dup |
allow duplication when random generation |
add |
add extra characters other than |
seed |
random seed |
Value
generated characters
Examples
gen_char(from = "g", n = 5)
gen_char(to = "g", n = 5)
gen_char(from = "g", to = "j")
gen_char(from = "t", n = 5, random = TRUE)
gen_char(
from = "x", n = 5, random = TRUE,
allow_dup = FALSE, add = c("+", "-")
)
[Package baizer version 0.8.0 Index]