• on_qday(): Is the date on the x-th day of the quarter?

  • before_qday(): Is the date before the x-th day of the quarter?

  • after_qday(): Is the date after the x-th day of the quarter?

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

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

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

between_qdays(x, y, start = TRUE)

on_qday(x, start = TRUE)

Arguments

x

[integer(1)]

A day of the quarter to mark as an event. For on_qday(), 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 quarter? If FALSE, the event is computed as the x-th day from the end of the quarter.

y

[integer(1)]

A day of the quarter to mark as an event.