BuildDimensionLists: BuildDimensionLists(data_element_map_item, dim_item_sets,...

Description Usage Arguments Value

View source: R/SiteDistMain.R

Description

# get list of dimensions (parameters) for analytics call by level planning, community, facility analytics will be called seperatly for each level. Tightly coupled to DATIM as it contains some hard coded dimension uids for Funding Mechanism, technical area, num or denom, disagg type, support type, and type of organization unit. Also some hard coded dimension items for type of organization unit and support type

Usage

1
2
3
4
5
6
BuildDimensionLists(
  data_element_map_item,
  dim_item_sets,
  mechanisms,
  country_details
)

Arguments

data_element_map_item

Single row of data_element_map being sliced and passed

dim_item_sets

Dataframe containing all the dimension item sets e.g. datapackcommons::dim_item_sets

mechanisms

All historic mechanisms for the country filtered by id

country_details

Country levels for a country

Value

List of dimensions for the analytics call GetData_Analytics


pepfar-datim/data-pack-commons documentation built on Jan. 17, 2020, 11:50 a.m.