
Generate Quality Control Report for HR Data
generate_qc_report.RdProduces a comprehensive HTML quality control report for harmonized HR data. The report includes diagnostics on data structure, primary key integrity, cross-module orphan checks, missingness patterns, and temporal volatility across Contract, Personnel, and Establishment modules.
Arguments
- contract_dt
A data.table containing the Contract module data with harmonized column names according to
dictionary. Should include columns such as contract_id, personnel_id, est_id, ref_date, salary fields, and occupation information.- personnel_dt
A data.table containing the Personnel module data with harmonized column names. Should include personnel_id and demographic information.
- est_dt
A data.table containing the Establishment module data with harmonized column names. Should include est_id and establishment characteristics.
- output
Character string specifying the output file name. Defaults to "qc_report.html". The file will be created in the current working directory.
Value
A quality control report, in HTML.
The generated report includes:
Module dimensions and variable structure conformity
Primary key uniqueness checks
Cross-module orphan record identification
Comprehensive missingness analysis with visualizations
Temporal volatility metrics for salary, wagebill, and staff counts
See also
compute_qualitycontrol for the underlying diagnostic functions
dictionary for the harmonization dictionary