individualID-class: An S4 class to represent individual identifiers

Description Slots Author(s) Examples

Description

An S4 class to represent individual identifiers

Slots

id

Unique numerical individual identifier within src (integer, length 1)

name

Name of the individual (character)

dob

Date of birth of class (Date, length 1)

src

Study name (character)

dnr

Name of data object (character)

Author(s)

Stef van Buuren 2019

Examples

1
2
3
4
5
6
# Create a new ID for Ron and Jasper
ron <- new("individualID", name = c("Ron", "Smith"),
           dob = as.Date("1999-08-22", "%Y-%m-%d"),
           id = as.integer(204))
jasper <- new("individualID", name = c("Jasper", "Fielding"),
           id = as.integer(220))

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