Retrieve 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",
  ...
)

Arguments

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 destfile location? Default is TRUE.

quiet

Should status messages and progress bars be hidden? Default is FALSE.

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 ic.df be returned? Default is TRUE.

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 download.file.

reduce

For surveys only, should records with insufficient coverage be dropped? Default is TRUE.

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 TRUE.

adjVacc

Character vector of vaccines to adjust when adjust is TRUE. Default is "DTP" and "PCV".

Value

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.

See also