Learn R Programming

generator (version 0.1.0)

r_date_of_births: Generate random fake date of birth values.

Description

Generate random fake date of birth values.

Usage

r_date_of_births(n, start = as.Date("1900-01-01"), end = Sys.Date())

Arguments

n
number of observations.
start
starting date.
end
ending date.

Value

A character vector of n randomly generated date of birth values.

Examples

Run this code
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"))

Run the code above in your browser using DataLab