• on_mweek(): Is the date on the x-th week of the month?

  • before_mweek(): Is the date before the x-th week of the month?

  • after_mweek(): Is the date after the x-th week of the month?

  • between_mweeks(): Is the date between the x-th and y-th weeks of the month?

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

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

between_mweeks(x, y, start = TRUE)

on_mweek(x, start = TRUE)

Arguments

x

[integer(1)]

A week of the month to mark as an event. For on_mweek(), this is also allowed to be a vector.

inclusive

[logical(1)]

Should x count as an event?

start

[logical(1)]

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

y

[integer(1)]

A week of the month to mark as an event.