prepareMemoData: Prepare Memo Data

prepareMemoDataR Documentation

Prepare Memo Data

Description

A list of tables is returned in d$memo$datapack or d$memo$datim depending on the requested type.

by_psnu: Dataframe of indicators aggregated to the PSNU level by_prio: Dataframe of indicators aggregated to the prioritization level by_partner: Dataframe of indicators aggregate to the partner level

Usage

prepareMemoData(
  d,
  memo_type,
  include_no_prio = TRUE,
  n_cores = getMaxCores(),
  d2_session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

d

Datapackr sidecar object

memo_type

memo_type One of the following: datapack: Create the memo based on the data in the datapack or OPU datapack datim: Create the memo based on data currently in DATIM comparison: Create a comparison memo with data from both DATIM and datapack

include_no_prio

If TRUE, include "No Prioritiation" as a column in the output.

n_cores

Indicates how many cores should be used.

d2_session

DHIS2 Session id. R6 datimutils object which handles authentication with DATIM.

Value

Datapackr d object


pepfar-datim/datapackr documentation built on April 14, 2024, 10:35 p.m.