View source: R/user_interface.R
validate_input_file | R Documentation |
The main input file for do_global_run
and friends
must meet certain requirements to be valid. These include correct
column names and valid cell values. This function can be used to
check that a candidate ‘.csv’ files satisfies these
requirements.
validate_input_file(
age_group = "15-49",
input_data_folder_path = system.file("extdata", package = "FPEMglobal"),
data_csv_filename = paste0("data_cp_model_all_women_", age_group, ".csv"),
marital_group = c("married", "unmarried"),
verbose = FALSE
)
age_group |
Character. The age group for which a run of the
model is desired, specified in the format “xx-yy”,
where “xx” is the start age, “yy” is the end
age, e.g., |
input_data_folder_path |
File path to folder containing
all input data (except any map shapefiles). If
|
data_csv_filename |
Filename of the ‘.csv’ file containing country-level prevalence data. See “Details”. |
marital_group |
Character. The marital group for which a run of the model is desired. |
verbose |
Logical; print lots and lots of messages about progress? |
See “Details” in the help file for do_global_all_women_run
.
If all checks pass, the processed input file is returned invisibly as a data frame.
Mark Wheldon
link{validate_denominator_counts_file}
, do_global_all_women_run
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.