Generate dates given timepoint indices, start date and step unit
generate_dates(timepoints, start, unit)
Integer vector timepoint indices
Date of index 1
"year" "month" or "day"
A vector of dates the same length as timepoints
timepoints
# NOT RUN { # Dates from Tokars (2018) timepoints <- 1L:304L dates <- generate_dates(timepoints, lubridate::ymd("2017-08-01"), "day") # }
Run the code above in your browser using DataLab