• on_month() / on_ymonth(): Is the date on month x?

  • before_month() / before_ymonth(): Is the date before month x?

  • after_month() / after_ymonth(): Is the date after month x?

  • between_months() / between_ymonths(): Is the date between months x and y?

after_month(x, inclusive = FALSE)

after_ymonth(x, inclusive = FALSE)

before_month(x, inclusive = FALSE)

before_ymonth(x, inclusive = FALSE)

between_months(x, y)

between_ymonths(x, y)

on_month(x)

on_ymonth(x)

Arguments

x

[integer(1) / character(1)]

A month of the year to mark as an event. For on_month(), this is also allowed to be a vector. This can be a full month string like "November", or an abbreviation like "Nov".

inclusive

[logical(1)]

Should x count as an event?

y

[integer(1) / character(1)]

A month of the year to mark as an event.

Details

on_month() is an alias of the less common, but more verbose, on_ymonth().