Helper function

add_days_since(data, start_cutoff)

Arguments

data

data frame with `region`, `Date` and `total` columns

start_cutoff

minimum number of total from which to start counting days

Value

data fram with extra column `d` with days since `total` reached `start_cutoff`