Skip to contents

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