Description Slots Author(s) Examples
An S4 class to represent individual identifiers
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
)
Stef van Buuren 2019
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.