event_in() checks if x is in the set of dates defined by event.

event_in(x, event)

Arguments

x

[Date]

A vector of dates.

event

[event]

An event.

Examples

event_in("2019-01-01", on_mday(1))
#> [1] TRUE
event_in("2019-01-01", on_mday(1) & on_wday("Mon"))
#> [1] FALSE