gen_dob: Generate a record of date of birth.

Description Usage Arguments Value Examples

View source: R/date.R

Description

gen_dob randomly return a record of date of birth.

Usage

1
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

1
2
3
4
gen_dob()
gen_dob(start = "1995-01-01")
gen_dob(end = "2000-01-01")
gen_dob(start = "1909-01-01", end = "2000-01-01")

sdglinkage documentation built on April 27, 2020, 5:09 p.m.