character_ {quickcheck} | R Documentation |
Character generators
Description
A set of generators for character vectors.
Usage
character_(len = c(1L, 10L), any_na = FALSE, any_empty = FALSE)
character_letters(len = c(1L, 10L), any_na = FALSE, any_empty = FALSE)
character_numbers(len = c(1L, 10L), any_na = FALSE, any_empty = FALSE)
character_alphanumeric(len = c(1L, 10L), any_na = FALSE, any_empty = FALSE)
Arguments
len |
Length of the generated vectors. If |
any_na |
Whether |
any_empty |
Whether empty character values should be allowed. |
Value
A quickcheck_generator
object.
Examples
character_() %>% show_example()
character_(len = 10L, any_na = TRUE) %>% show_example()
character_(len = 10L, any_empty = TRUE) %>% show_example()
[Package quickcheck version 0.1.3 Index]