
Export the AFP linelist
create_afp_export.RdExport the AFP linelist with adequacy.final2 column. The adequacy.final2
column describes the status of a stool sample, such as if a
stool sample is adequate or inadequate. Specifically, it is
created from generate_stool_data() which takes parameters on how to deal with missing or
inadequate stool samples.
Usage
create_afp_export(
stool.data,
country = Sys.getenv("DR_COUNTRY"),
excel_output_path = Sys.getenv("DR_TABLE_PATH")
)Arguments
- stool.data
tibbleAFP data with final adequacy columns. This is the output ofgenerate_stool_data().- country
strName of the country.- excel_output_path
strOutput path of the Excel file.
Examples
if (FALSE) { # \dontrun{
ctry.data <- init_dr("algeria")
stool.data <- generate_stool_data(
ctry.data$afp.all.2, "good", "inadequate",
"2021-01-01", "2023-12-31"
)
create_afp_export(stool.data)
} # }