adorn_daa_data: Adorn DAA Indicator Data

View source: R/adorn-daa-data.R

adorn_daa_dataR Documentation

Adorn DAA Indicator Data

Description

Cleans and adorns a dataframe of DAA data containing UIDs with indicator names, fiscal years, and weighted concordance and discordance information, as well as other information.

Usage

adorn_daa_data(
  df,
  include_coc = FALSE,
  aggregate_indicators = TRUE,
  d2_session = dynGet("d2_default_session", inherits = TRUE)
)

Arguments

df

Dataframe containing data to be adorned.

include_coc

Boolean indicating whether Category Option Combo data should be kept or removed from returned dataset.

aggregate_indicators

Indicates whether indicators should be rolled up across "Age" and "Age Aggregate" data elements. Also will filter out certain data elements from 2017 and 2018 that would cause duplication.

d2_session

R6 session object.

Value

df An adorned dataframe.


pepfar-datim/daa-analytics documentation built on Nov. 24, 2024, 7:31 p.m.