duplicate_summary() reports how many duplicate unit-time cells each panel
unit has.
Value
A tibble with one row per panel unit that has duplicate cells. The output includes:
panelbuild_duplicate_cellsNumber of duplicated unit-time cells for the unit.
panelbuild_duplicate_extra_rowsNumber of extra rows caused by duplicates.
If no duplicates are present, the function returns all units with zero duplicate cells and zero extra rows.
Details
This function summarizes duplicate cells at the panel-unit level. It is useful when users want to identify which units contribute most to duplicate unit-time observations.
The output reports both the number of duplicated cells and the number of extra rows implied by those duplicates. For example, if one unit-time cell appears three times, it counts as one duplicate cell and two extra rows.
The function does not modify, drop, aggregate, or impute the data.