sch_retrieve() returns the events that x falls on in the schedule.

sch_retrieve(x, schedule)

Arguments

x

[Date]

A vector of dates.

schedule

[schedule]

A schedule.

Examples

on_25th <- on_mday(25) on_dec <- on_month("Dec") sch <- schedule() sch <- sch_add(sch, on_25th, "twenty_fifth") sch <- sch_add(sch, on_dec, "december") sch_retrieve(c("2019-01-01", "2019-01-25", "2019-12-25"), sch)
#> [[1]] #> named list() #> #> [[2]] #> [[2]]$twenty_fifth #> <On day of the month: 25> #> #> #> [[3]] #> [[3]]$twenty_fifth #> <On day of the month: 25> #> #> [[3]]$december #> <On month of the year: December> #> #>