alma_in | R Documentation |
alma_in()
checks if x
is in the event set of dates defined by the
rschedule.
alma_in(x, rschedule)
x |
A vector of dates. |
rschedule |
An rschedule, such as an rrule, runion, rintersect, or rsetdiff. |
A logical vector the same size as x
.
rrule <- weekly() %>%
recur_on_day_of_week("Thursday")
# A Thursday and Friday
x <- as.Date("1970-01-01") + 0:1
alma_in(x, rrule)
# Every month, on the 2nd day of the month
rrule2 <- monthly() %>%
recur_on_day_of_month(2)
# Make a larger set of multiple rules
rb <- runion(rrule, rrule2)
alma_in(x, rb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.