process_all_cbc_files: Process all cbc files in a folder and generate qc reports

Description Usage Arguments Value

View source: R/process-data.R

Description

Process all cbc files in a folder and generate qc reports

Usage

1
2
3
4
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*")

Arguments

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

Value

a combined dataset


bnaras/SBCpip documentation built on May 5, 2019, 6:54 p.m.