process_all_cbc_files.Rd
Process all cbc files in a folder and generate qc reports
process_all_cbc_files(data_folder, report_folder = file.path(dirname(data_folder), paste0(basename(data_folder), "_Reports")), cbc_abnormals, cbc_vars, pattern = "LAB-BB-CSRP-CBC*")
data_folder | the folder containing the raw data |
---|---|
report_folder | the folder to write reports to, default is data_folder with "_Reports" appended. Must exist. |
cbc_abnormals, | a named list of functions of a single vector returning TRUE for abnormal values |
cbc_vars, | the names of fields to include; others are excluded |
pattern | the pattern to distinguish CBC files, default "LAB-BB-CSRP-CBC*" appearing anywhere |
a combined dataset