This function provides random date generation with a specified range, that defaults to the beginning and end of the current year.
number of observations. If length(n) > 1
, the length
is taken to be the number required.
lower and upper limits of the distribution. Must be (coercible to) valid dates.
parameters given to as.Date()
for coercing the values of min
and max
# generate a million random dates and check the distribution
hist(rdate(1000000), breaks = "months")