Validate Variable Dictionary consistency and return a stable validation
object. Validation Findings report repaired variable_name values,
non-unique or unsafe Dictionary Variable Names, and level-label coding
issues. The validation result is a consistency screen, not proof that the
source Qualtrics metadata is correct.
Arguments
- dict
A Variable Dictionary returned by
dict_generate.- quiet
Boolean. If
TRUE, suppress routine validation messages. Defaults toTRUE.
Value
A list with stable components:
validation_findings- A data frame of Validation Findings for Variable Dictionary consistency issues, including repaired variable names, non-unique or unsafe finalvariable_namevalues, and level-label coding findings. Each row carries aseverity:"definite"when the finding makes the affected export column uninterpretable or its identity unreliable (the Export-blocking level-label codings, and inconsistent, duplicate, or unsafe finalvariable_namevalues),"suggestive"when the finding only reports something worth review while the column's data and identity stay sound (a repairedvariable_name; a level-label finding, such as a gapped level run, none of whose tripped tests is Export-blocking).level_label_pairs- A data frame containing the unique level-label pairings.
Details
dict_validate() is total: it reports every Validation Finding and never
errors, so it can be used to survey the damage in a defective Variable
Dictionary. Use assert_dict_valid() when you want the Export-blocking
subset to error instead.