rdate | R Documentation |
This function provides random date generation with a specified range, that defaults to the beginning and end of the current year.
rdate( n, min = paste0(format(Sys.Date(), "%Y"), "-01-01"), max = paste0(format(Sys.Date(), "%Y"), "-12-31"), ... )
n |
number of observations. If |
min, max |
lower and upper limits of the distribution. Must be (coercible to) valid dates. |
... |
parameters given to |
# generate a million random dates and check the distribution hist(rdate(1000000), breaks = "months")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.