Open zx8754 opened 2 years ago
Did you mean this?
library(wakefield)
r_data_frame(
n = 5,
dob(name = "date_start"),
date_stamp(start = date_start)
)
#> Error in seq(start, length = k, by = by): object 'date_start' not found
Created on 2022-10-03 with reprex v2.0.2
If so, this could be made to work by having r_data_frame()
compute each column iteratively.
There is already
dob
,date_stamp
, and we could use these to get start and end dates, e.g.:Could we have a dedicated function that would create start and end date, where obviously
date_end
can't be before thedate_start
?Or maybe even better, let
date_stamp
accept column name forstart=
, like below: