Description Usage Arguments Note Author(s) Examples
View source: R/export_as_bds.R
This function selects child data from donorloader
package, and
save the BDS representations into one file per child.
1 2 3 4 5 6 7 8 | export_as_bds(
dnr,
ids,
names = NULL,
path = NULL,
schema = "bds_schema.json",
indent = NULL
)
|
dnr |
Length-one character vector with the name(s) of the donor data |
ids |
Integer vector with the id number for the individuals |
names |
Optional. Character vector with |
path |
Path where files should be written. By default, |
schema |
The JSON validation schema. Either |
indent |
Integer. Number of spaces to indent when using
|
If child birth date is unknown, then 2000-01-01 is used.
Birth date of the mother is back-calculated from agem
, and thus imprecise.
Stef van Buuren 2021
1 2 3 4 5 6 | names <- c("Laura S", "Thomas S", "Anne S")
ids <- as.integer(c(34071, 34072, 34073))
## Not run:
export_as_bds("smocc", ids, names, path = "tmp")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.