posixct_ {quickcheck} | R Documentation |
POSIXct generators
Description
A set of generators for POSIXct vectors.
Usage
posixct_(len = c(1L, 10L), any_na = FALSE)
posixct_bounded(left, right, len = c(1L, 10L), any_na = FALSE)
posixct_left_bounded(left, len = c(1L, 10L), any_na = FALSE)
posixct_right_bounded(right, len = c(1L, 10L), any_na = FALSE)
Arguments
len |
Length of the generated vectors. If |
any_na |
Whether |
left |
The minimum possible value for generated numbers, inclusive. |
right |
The maximum possible value for generated numbers, inclusive. |
Value
A quickcheck_generator
object.
Examples
posixct_() %>% show_example()
posixct_bounded(
left = as.POSIXct("2020-01-01 00:00:00"),
right = as.POSIXct("2021-01-01 00:00:00")
) %>% show_example()
posixct_(len = 10L, any_na = TRUE) %>% show_example()
[Package quickcheck version 0.1.3 Index]