View source: R/dateFunctions.R
rand_date | R Documentation |
Compute uniformly distributed random dates within intervals of dates
rand_date(startdate, enddate, ...)
startdate |
A vector of class |
enddate |
A vector of class |
... |
Additional arguments passed to |
A vector of elements of class Date
containing uniformly
distributed dates in the closed interval (startdate
, enddate
).
Steve Gutreuter
sample
seq.Date
begin <- ymd("2020-06-21", "2021-06-21")
end <- ymd("2020-12-21", "2021-12-21")
rand_date(begin, end)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.