Description Usage Arguments Value Examples
View source: R/r_date_of_births.R
Generate random fake date of birth values.
1 | r_date_of_births(n, start = as.Date("1900-01-01"), end = Sys.Date())
|
n |
number of observations. |
start |
starting date. |
end |
ending date. |
A character vector of n
randomly generated date of birth values.
1 2 3 4 5 | r_date_of_births(10)
r_date_of_births(10, start = as.Date("2000-01-01"))
r_date_of_births(10,
start = as.Date("2000-01-01"),
end = as.Date("2100-01-01"))
|
[1] "1962-03-19" "1998-01-03" "1979-06-18" "1961-10-02" "1908-07-17"
[6] "2010-01-16" "1942-03-27" "1992-12-26" "1925-09-18" "2011-11-04"
[1] "2005-12-06" "2010-10-28" "2003-07-12" "2016-05-12" "2013-03-13"
[6] "2015-02-28" "2014-06-17" "2003-10-17" "2000-08-22" "2007-12-04"
[1] "2080-12-25" "2029-04-14" "2053-03-25" "2055-10-07" "2006-01-04"
[6] "2029-02-03" "2034-01-06" "2001-06-15" "2007-04-15" "2032-02-17"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.