View source: R/prepareMemoData.R
prepareMemoDataByPSNU | R Documentation |
This function calculates COP memo indicators at the PSNU level. If the parallel library is installed, very significant processing times can be achieved through parallel processing.
prepareMemoDataByPSNU(
analytics,
memo_type,
inds,
prios,
partners_agencies,
psnus,
cop_year,
n_cores = getMaxCores()
)
analytics |
Data frame consisting of at least psnu_uid, categoryoptioncombo_id, mechanism_code and target value |
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 |
inds |
Data frame of indicators from getMemoIndicators |
prios |
Data frame of prioritization levels. |
partners_agencies |
Result of getMechanismView |
psnus |
Dataframe of PSNUs to use in this function, containing at least
|
cop_year |
COP Year to use for tailoring functions. Remember, FY22 targets = COP21. |
n_cores |
Indicates how many cores should be used. |
A dataframe of COP indicators aggregated to the PSNU level.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.