Run validation check on country HFR submission while it processes and tidies the submission for inclusion into the database.
hfr_process_template(
filepath,
round_hfrdate = FALSE,
hfr_pd_sel = NULL,
folderpath_output = NULL,
datim_path = NULL
)
filepath to sumbited template
rounds date to the nearest HFRweek start (for non-compliance), default = FALSE
filter for HFR reporting period, 1-13, no filter when NULL, default = NULL
if a csv output is desired, provide the full path to the folder
path to DATIM lookup files for full validation
if (FALSE) {
#file path for the
path <- "~/WeeklyData/Saturn"
output_folder <- "~/WeeklyData/Output"
#process Excel file for Saturn
hfr_process_template(path, output_folder)
#process Excel file for Saturn with full validation
datim_folder <- "~/Datim"
hfr_process_template(path, output_folder, datim_path = datim_folder)
}