View source: R/06_conversions.R
| write_DIAX_format | R Documentation |
Accepts either the output of parse_data for a single
individual or the output of merge_all for
multiple individuals. One JSON file following the
DIAX
specification is written per individual.
write_DIAX_format(data, prefix, ids = NULL)
data |
A list with data of one individual (output of |
prefix |
Character string prepended to the id to build each output
filename, e.g. |
ids |
Character or numeric vector with the individual(s) to write.
Defaults to all ids found in |
No return value, called for side effects: one JSON file is written per id.
path <- system.file("extdata", "glooko_example.zip", package = "aidR")
data <- parse_data(id = "1", paths = path)
out_dir <- tempfile("diax_")
dir.create(out_dir)
write_DIAX_format(data, prefix = file.path(out_dir, "id_"))
list.files(out_dir)
unlink(out_dir, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.