merge_kpi: Merge country monitoring and evaluation excel tool data (key...

Description Usage Arguments Author(s)

View source: R/merge_M_and_E.R

Description

Merge country monitoring and evaluation excel tool data (key performance indicators)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
merge_kpi(
  inputdirectory,
  isotomerge = "AFRO",
  outputdirectory = tempdir(),
  outputname = "kpi_merged_",
  wide = TRUE,
  clean = TRUE,
  variabledict = system.file("extdata", "mne_dictionary.xlsx", package =
    "covidmonitor"),
  cleaningdict = system.file("inst", "cleaning_dictionary.xlsx", package =
    "covidmonitor")
)

Arguments

inputdirectory

path to folder containing excel tool datasets

isotomerge

3 letter ISO-code for country of interest, in quotation marks, combine multiple countries with c(...), default is "AFRO" to read in all available.

outputdirectory

path to folder where merged file is to be saved (must exist already)

outputname

character string to name merged file

wide

logical (TRUE/FALSE) of whether the output data frame should be in wide format (default), else will produce long format data

clean

logical (TRUE/FALSE) of whether to clean the output data frame

variabledict

path to dictionary file containing variable definitions. Default is a predefined within the package. For details of how to use your own file see README

cleaningdict

path to dictionary file containing cleaning rule definitions for country names. Default is a predefined within the package. For details of how to use your own file see README

Author(s)

Alice Carr, Alex Spina


R4IDSR/covidmonitor documentation built on March 29, 2021, 12:05 p.m.