Returns the next date that falls on a specific day of the week.
Usage
next_weekday(weekday, as_of = Sys.Date(), include_today = TRUE)See also
Other date-utilities:
bucket_recency(),
date_interval(),
is_within(),
last_weekday(),
weekday_name()
Examples
# Find next Monday
next_weekday("Monday")
#> [1] "2026-03-23"
# From a specific date
next_weekday("Monday", as_of = as.Date("2024-06-14"))
#> [1] "2024-06-17"
#> "2024-06-17"
