Check Data Compatibility
check_compatibility.RdCompares patient names between the hand-entered item-level data and the REDCap export to identify any mismatches or inconsistencies.
Value
If discrepancies are found, an informative message is printed and the function
stops execution (e.g., via stop()). This function is intended to be used
inside prepare_data() as a consistency check.
See also
prepare_data()is a wrapper of this function.import_item_data()preparesd1.import_redcap_data()preparesd2.
Examples
if (FALSE) { # \dontrun{
p <- data_paths("data-raw")
data <- prepare_data(p) # Internally calls the compatibility check
} # }