• on_wday(): Is the date on the x-th day of the week?

  • on_weekends(): Is the date on a weekend?

  • on_weekdays(): Is the date on a weekday?

  • before_wday(): Is the date before the x-th day of the week?

  • after_wday(): Is the date after the x-th day of the week?

  • between_wdays(): Is the date between the x-th and y-th days of the week?

after_wday(x, inclusive = FALSE, start = TRUE)

before_wday(x, inclusive = FALSE, start = TRUE)

between_wdays(x, y, start = TRUE)

on_wday(x, start = TRUE)

on_weekends()

on_weekdays()

Arguments

x

[integer(1) / character(1)]

A day of the week to mark as an event. For on_wday(), this is also allowed to be a vector. This is also allowed to be a full weekday string like "Tuesday", or an abbreviation like "Tues".

inclusive

[logical(1)]

Should x count as an event?

start

[logical(1)]

Should counting start from the beginning of the week? If FALSE, the event is computed as the x-th day from the end of the week.

y

[integer(1) / character(1)]

A day of the week to mark as an event. This is also allowed to be a full weekday string like "Tuesday", or an abbreviation like "Tues".