View source: R/export_as_bds.R
export_as_bds | R Documentation |
Converts data in donordata
format to a JSON file per child.
export_as_bds(data, ids, path = NULL, names = NULL, indent = NULL, ...)
data |
Dataset in donordata format (having child and time elements) |
ids |
Integer vector with the id number for the individuals |
path |
Optional. Path where files should be written. By default, |
names |
Optional. Character vector with |
indent |
Optional. Integer. Number of spaces to indent when using
|
... |
Forwarded to |
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
names <- c("Laura S", "Thomas S")
ids <- as.integer(c(34071, 34072))
## Not run:
export_as_bds(minidata, ids = ids, names = names, indent = 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.