Drop decreasing counts
drop_decreasing(x, by, cols, k, strict)
| x |
|
|---|---|
| by | vector to group by |
| cols | vector of columns to clean |
| k | vector of lags (e.g., |
| strict | logical indicating whether only strictly decreasing counts should be dropped |
x where decreasing counts are replaced with NA