agg_dp: Aggregate Targets to IM or PSNU level

View source: R/agg_dp.R

agg_dpR Documentation

Aggregate Targets to IM or PSNU level

Description

To ensure there are no duplicate rows on the reshape, this function first aggregates the data by the key columns to minimize any issues. If desiring to work at the PSNU level, the parameter 'psnu_lvl' allows you to aggregate to the PSNU level instead of the PSNUxIM level.

Usage

agg_dp(df, psnu_lvl = FALSE)

Arguments

df

data frame to aggregate

psnu_lvl

default aggregate is to IM level; if TRUE, aggregates to PSNU level


USAID-OHA-SI/tameDP documentation built on March 16, 2024, 6:26 a.m.