download.RdRetrieve the input data files and WUENIC coverage estimates with further
processing of ic.df objects.
download_wuenic( destfile, url, use_cache = TRUE, quiet = FALSE, attempts = 3, mode = "wb", return_ic = TRUE, add_region = "who", ... ) download_coverage( destfile, url, use_cache = TRUE, quiet = FALSE, attempts = 3, mode = "wb", return_ic = TRUE, add_region = "who", ... ) download_survey( destfile, url, use_cache = TRUE, quiet = FALSE, attempts = 3, mode = "wb", return_ic = TRUE, reduce = TRUE, minSample = 300, adjust = TRUE, adjVacc = c("DTP", "PCV"), add_region = "who", ... ) download_denom( destfile, url, use_cache = TRUE, quiet = FALSE, attempts = 3, mode = "wb", ... )
| destfile | Optional. Character string with the name of where the downloaded file is saved. |
|---|---|
| url | Optional. A character string naming the URL of the resource to download. Default is the .xlsx from the WHO immunization data website. |
| use_cache | Logical. Look for an already downloaded file is the
|
| quiet | Should status messages and progress bars be hidden? Default is
|
| attempts | integer of the number of attempts to download the file. Default is 3. |
| mode | a character string specifying the write mode. 'wb' is most common to write binary files. |
| return_ic | Should an object of type |
| add_region | Optional. Character string for the type of region code to add based on the ISO3 code of the country. Options are: 'who' or 'm49'. |
| ... | additional arguments to be passed on to |
| reduce | For surveys only, should records with insufficient coverage
be dropped? Default is |
| minSample | For surveys only, what is the minimum sample size to keep survey records? Default is 300. |
| adjust | For survey only, should a recall-bias adjustment be applied?
Default is |
| adjVacc | Character vector of vaccines to adjust when |
The functions return a data.frame while
download_coverage and downlaod_survey return objects of type
ic.df unless the option return_ic is FALSE.