• on_quarter(): Is the date on quarter x?

  • before_quarter(): Is the date before quarter x?

  • after_quarter(): Is the date after quarter x?

  • between_quarters(): Is the date between quarters x and y?

after_quarter(x, inclusive = FALSE)

before_quarter(x, inclusive = FALSE)

between_quarters(x, y)

on_quarter(x)

Arguments

x

[integer(1)]

A quarter to mark as an event. For on_quarter(), this is also allowed to be a vector.

inclusive

[logical(1)]

Should x count as an event?

y

[integer(1)]

A quarter to mark as an event.