# The default interval is 1
on_monthly <- monthly(since = "1999-01-01")
alma_search("1999-01-01", "1999-06-01", on_monthly)
# Adjust to every other month
on_every_other_month <- on_monthly %>% recur_on_interval(2)
alma_search("1999-01-01", "1999-06-01", on_every_other_month)
# Note that the frequency is limited to "every other month", but you
# can still have multiple events inside a single month
on_every_other_month_on_day_25_or_26 <- on_every_other_month %>%
recur_on_day_of_month(25:26)
alma_search("1999-01-01", "1999-06-01", on_every_other_month_on_day_25_or_26)
Run the code above in your browser using DataLab