get_dob: Get the date of birth of an individual

Description Usage Arguments Value Examples

View source: R/get_dob.R

Description

Get the date of birth of an individual

Usage

1
get_dob(ind)

Arguments

ind

An object of class individual.

Value

Object of class Date. If dob is missing, the function return dob 01-01-2000.

Examples

1
2
3
4
5
# Extract date of birth
ind <- new("individual", dob = Sys.Date(),
           hgt = new("xyz", x = c(0.3, 2, 6)),
           wgt = new("xyz", x = c(0.2, 1), y = c(1, NA)))
get_dob(ind)

stefvanbuuren/minihealth documentation built on March 11, 2021, 7:10 p.m.