Identifies and merges tables that share the same DOI or, if DOI is missing, the same BibTex entry. If tables do not have the same structure, only those with identical structures will be merged. This function performs several consistency checks before merging, and prompts the user for confirmation if inconsistencies are found.
Value
A merged data frame containing all tables with the same DOI or BibTex, or NULL if no merge candidates are found.
Details
irw_merge()
performs the following checks before proceeding with the merge:
Number of Respondents Check:
The function checks if the number of respondents is consistent across all tables.
If the number of respondents is consistent, the merge proceeds.
If the number of respondents is inconsistent across tables, a WARNING message is displayed:
ID Consistency Check:
Checks if all tables share the same set of IDs.
Checks if the IDs form a strict sequence (e.g., 1, 2, 3, ...).
If IDs are not consistent across tables, a NOTE message is displayed:
Item Column Overlap Check:
Verifies that there is no overlap of item columns across tables.
If overlapping items are found, a NOTE message is displayed: