Description Usage Arguments Value Author(s) See Also Examples
View source: R/individual_to_donordata.R
This function returns the slots "id", "child" and
"time", either separate or as a list from
the individual object. The code
assumes that slots "id", "child" and "time"
are up-to-data and consistent with the other slots.
1 | individual_to_donordata(x, element = NULL)
|
x |
An object of class |
element |
Requested list elements. Can be |
If elements == "list", the function returns
a list of "child" and "time". The function
returns a "tibble" for the choices "child" and
"time".
Stef van Buuren 2019
1 2 3 4 5 6 7 | library(donorloader)
smocc <- load_data(dnr = "smocc")
smocc_bs <- load_data(dnr = "smocc_bs")
p <- donordata_to_individual(dnr = "smocc", id = 10001)
p
q <- individual_to_donordata(p)
q
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.