Count days between two dates
Examples
dplyr::tibble(dos = as.Date(c("2021-04-18", "2021-11-18", "2022-02-18")),
signed = as.Date("2022-02-18")) |>
count_days(
start = dos,
end = signed,
lag)
#> # A tibble: 3 × 3
#> dos signed lag
#> <date> <date> <int>
#> 1 2021-04-18 2022-02-18 306
#> 2 2021-11-18 2022-02-18 92
#> 3 2022-02-18 2022-02-18 0