Description Usage Arguments Details Value
This function reads an XML file containing a DDI codebook version 2.5 and returns the variable labels and value labels.
1 | getMetadata(xmlpath, OS = "windows", saveFile = FALSE, ...)
|
xmlpath |
A path to an XML file with a DDI codebook |
OS |
The target operating system, for the eol - end of line separator |
saveFile |
Boolean, save an .R file in the same folder |
... |
Additional arguments for this function (internal uses only) |
The argument OS
can be either:
"windows"
(default), or "Windows"
, "Win"
, "win"
,
"MacOS"
, "Darwin"
, "Apple"
, "Mac"
, "mac"
,
"Linux"
, "linux"
.
The end of line separator changes only when the target OS is different from the running OS.
For the moment, only DDI version 2.5 (Codebook) is supported, but the next version will include the latest DDI version 3.2 (Lifecycle).
A list containing two components "varlab" for all variable labels, and "vallab" for all value labels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.