alma_next | R Documentation |
alma_next()
generates the next event after x
.
alma_previous()
generates the previous event before x
.
alma_next(x, rschedule, inclusive = FALSE)
alma_previous(x, rschedule, inclusive = FALSE)
x |
A vector of dates. |
rschedule |
An rschedule, such as an rrule, runion, rintersect, or rsetdiff. |
inclusive |
If |
A Date vector the same size as x
.
on_12th <- monthly() %>% recur_on_day_of_month(12)
on_monday <- weekly() %>% recur_on_day_of_week("Monday")
# On the 12th of the month, or on Mondays
rb <- runion(on_12th, on_monday)
alma_next(c("2019-01-01", "2019-01-11"), rb)
alma_previous(c("2019-01-01", "2019-01-11"), rb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.