Learn R Programming

sdglinkage (version 0.1.0)

gen_dob: Generate a record of date of birth.

Description

gen_dob randomly return a record of date of birth.

Usage

gen_dob(start = "1900-01-01", end = "2020-01-01")

Arguments

start

A Date variable with a default of '1900-01-01'.

end

A Date variable with a default of '2020-01-01'.

Value

The output is a record of date of birth in Date format between 1900-01-01 and 2020-01-01. If start is given, the return date will be between the updated start date and 2020-01-01. If end is also given, the return date will be between the updated start date and updated end date.

Examples

Run this code
# NOT RUN {
gen_dob()
gen_dob(start = "1995-01-01")
gen_dob(end = "2000-01-01")
gen_dob(start = "1909-01-01", end = "2000-01-01")

# }

Run the code above in your browser using DataLab