validate_codebook {rddi} | R Documentation |
Validate generated codebook against DDI Codebook 2.5
Description
Validates your constructed codebook against the
DDI Codebook 2.5 schema. While all built-in ddi_
functions
are written with the schema in mind, this is useful
if you create your own DDI nodes (there are many and
it will take a while to implement all of them).
Usage
validate_codebook(codebook)
Arguments
codebook |
The codebook root node, output of |
Value
A logical (with attributes containing any errors) that indicates passing or failing.
Examples
cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample")))))
validate_codebook(cb)
[Package rddi version 0.1.1 Index]