The plan is to remove rows with at least n (n = 3) consecutive identical values in subset of columns (C1 and C2) of groups in ID after ordering by date.
Rows correspo