drop_decreasing: Drop decreasing counts

View source: R/covid19.R

drop_decreasingR Documentation

Drop decreasing counts

Description

Drop decreasing counts

Usage

drop_decreasing(x, by, cols, k, strict)

Arguments

x

data.frame containing the column date

by

vector to group by

cols

vector of columns to clean

k

vector of lags (e.g., k=1:7 removes values that are decreasing with respect to any of the previous 7 values)

strict

logical indicating whether only strictly decreasing counts should be dropped

Value

x where decreasing counts are replaced with NA


emanuele-guidotti/COVID19 documentation built on Feb. 21, 2025, 3:49 a.m.