Skip to contents

Create a set of single-selection date variables

Usage

select_dates_set(d, count)

Arguments

d

dataset containing variable details

count

integer; number of responses (rows)

Examples

d <- data.frame(variable = "my_dates", type = "date", miss_pct = 10,
                min_val = "6/1/2025",  max_val = "8/31/2025")

select_dates_set(d, count = 10)
#>    id   my_dates
#> 1   1 2025-07-27
#> 2   2 2025-08-24
#> 3   3 2025-07-28
#> 4   4       <NA>
#> 5   5 2025-07-11
#> 6   6 2025-07-07
#> 7   7 2025-08-05
#> 8   8 2025-07-31
#> 9   9 2025-08-03
#> 10 10 2025-06-23