alma_in() checks if x is in the event set of dates defined by the rschedule.
alma_in(x, rschedule)
Arguments
x: [Date]
A vector of dates.
rschedule: [rschedule]
An rschedule, such as an rrule, runion, rintersect, or rsetdiff.
Returns
A logical vector the same size as x.
Examples
rrule <- weekly()%>% recur_on_day_of_week("Thursday")# A Thursday and Fridayx <- as.Date("1970-01-01")+0:1alma_in(x, rrule)# Every month, on the 2nd day of the monthrrule2 <- monthly()%>% recur_on_day_of_month(2)# Make a larger set of multiple rulesrb <- runion(rrule, rrule2)alma_in(x, rb)