A NonLocalized Provider that contains all the selection and creation elements, but not the locales. That way we can still inherit an do useful stuff for providers that have no locale.
A NonLocalized Provider that contains all the selection and creation elements, but not the locales. That way we can still inherit an do useful stuff for providers that have no locale.
provider
Display the provider name.
random_element()
pick a random element from vector/list
BareProvider$random_element(x)
x
vector or list
a single element from x
random_element_prob()
pick a random element with probability from vector/list
BareProvider$random_element_prob(x)
x
vector or list
random_int()
any number of random integers from a min, max
BareProvider$random_int(min = 0, max = 9999, size = 1)
min
the minimum value. default: 0
max
the maximum value. default: 9999
size
number of values to return. default: 1
random integer
random_digit()
random integer between 0 and 9
BareProvider$random_digit()
random_digit_not_zero()
random integer between 1 and 9
BareProvider$random_digit_not_zero()
random_digit_or_empty()
random integer between 0 and 9 or empty character string
BareProvider$random_digit_or_empty()
random_digit_not_zero_or_empty()
random integer between 1 and 9 or empty character string
BareProvider$random_digit_not_zero_or_empty()
random_letter()
random letter
BareProvider$random_letter()
numerify()
replace a template with numbers
BareProvider$numerify(text = "###")
text
(character) a string
lexify()
replace a template with letters
BareProvider$lexify(text = "????")
text
(character) a string
bothify()
both numerify and lexify together
BareProvider$bothify(text = "## ??")
text
(character) a string
randomize_nb_elements()
Returns a random value near number
BareProvider$randomize_nb_elements(
number = 10,
le = FALSE,
ge = FALSE,
min = NULL,
max = NULL
)
number
value to which the result must be near
le
result must be lower or equal to number
ge
result must be greater or equal to number
min
the minimum value. default: NULL
max
the maximum value. default: NULL
a random int near number
...
ignored by this method
clone()
The objects of this class are cloneable with this method.
BareProvider$clone(deep = FALSE)
deep
Whether to make a deep clone.