View source: R/create_cleaning_flowcharts.R
create_drug_qc_flowchart | R Documentation |
This function generates a flowchart summarizing the cleaning of drug re-entry data specific to the TIMCI project. The flowchart displays the initial number of drug records, the number of records excluded due to duplicate IDs, and the number of records that passed other cleaning checks for specific drugs. The function returns a graph object that can be plotted using the DiagrammeR package.
create_drug_qc_flowchart(
n_raw_drug_records,
n_dropped_duplicate_records,
n_manual_edits,
n_amox_records,
n_aclav_records,
n_metro_records,
n_ctx_records,
n_cipro_records,
n_genta_records,
n_penig_records,
n_ceftriaxone_records,
n_cefixime_records,
n_ampi_records,
n_azithromycin_records,
n_benzathinepeniG_records,
n_antibiotics_records,
n_antimalarials_records,
n_cleaned_drug_records
)
n_raw_drug_records |
The initial number of drug records. |
n_dropped_duplicate_records |
The number of drug records dropped due to duplicate IDs. |
n_amox_records |
The number of records that passed the cleaning check for amoxicillin. |
n_aclav_records |
The number of records that passed the cleaning check for amoxicillin + clavulanic acid. |
n_metro_records |
The number of records that passed the cleaning check for metronidazole. |
n_ctx_records |
The number of records that passed the cleaning check for cotrimoxazole. |
n_cipro_records |
The number of records that passed the cleaning check for ciprofloxacin. |
n_genta_records |
The number of records that passed the cleaning check for gentamicin. |
n_penig_records |
The number of records that passed the cleaning check for benzylpenicillin. |
n_ceftriaxone_records |
The number of records that passed the cleaning check for ceftriaxone. |
n_cefixime_records |
The number of records that passed the cleaning check for cefixime. |
n_ampi_records |
The number of records that passed the cleaning check for ampicillin. |
n_azithromycin_records |
The number of records that passed the cleaning check for azithromycin. |
n_benzathinepeniG_records |
The number of records that passed the cleaning check for benzathine benzylpenicillin. |
n_antibiotics_records |
The number of records that passed the cleaning check for other antibiotics. |
n_antimalarials_records |
The number of records that passed the cleaning check for antimalarials. |
n_cleaned_drug_records |
The total number of cleaned drug records. |
This function returns a graph object that can be plotted using the DiagrammeR package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.