
Generate Standard HR Analytics Report
generate_hr_report.RdProduces a comprehensive HTML analytics report for harmonized HR data using a Quarto template. The report includes descriptive statistics, visualizations, and optional quality control diagnostics across Contract, Personnel, and Establishment modules.
Usage
generate_hr_report(
contract_dt,
personnel_dt,
est_dt,
country_code,
output = "hr_report.html"
)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.
- country_code
The reference country code. Must be specified in the three-letter, World Bank standard (e.g., BRA for Brazil).
- output
Character string specifying the output file name. Defaults to "hr_report.html". The file will be created in the current working directory.
See also
generate_qc_report for the data quality assessment report.
dictionary for the harmonization dictionary.