Learn R Programming

rddi (version 0.1.1)

validate_codebook: 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)

Value

A logical (with attributes containing any errors) that indicates passing or failing.

Arguments

codebook

The codebook root node, output of ddi_codeBook().

Examples

Run this code
cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample")))))
validate_codebook(cb)

Run the code above in your browser using DataLab