duplicate_cells() extracts duplicate unit-time combinations stored in an
audit object created by audit_panel().
Arguments
- x
An object created by
audit_panel().
Details
Duplicate cells are unit-time combinations that appear more than once in the
original data. The returned table includes a count column n showing how
many rows are present for each duplicated unit-time cell.
This function does not re-audit the original dataset. It simply extracts the duplicate-cell table already stored in the audit object.
Examples
audit <- audit_panel(example_panel, id = id, time = year)
duplicate_cells(audit)
#> id year n
#> 1 1 2021 2