on_every_nth | R Documentation |
Create a schedule of events occuring in increments from a fixed date.
on_every_nth(n, unit, starting, inclusive = TRUE, backdated = FALSE)
on_every(unit, starting, inclusive = TRUE, backdated = FALSE)
on_every_second(unit, starting, inclusive = TRUE, backdated = FALSE)
in_every_nth(n, unit, starting, inclusive = TRUE, backdated = FALSE)
in_every(unit, starting, inclusive = TRUE, backdated = FALSE)
in_every_second(unit, starting, inclusive = TRUE, backdated = FALSE)
n |
A single integer specifying the increment of the events to create.
Eg. |
unit |
The type of period to increment. Can be either:
|
starting |
The first event of the series. Can be a date or datetime. |
inclusive |
Logical indicating whether the |
backdated |
Logical indicating whether dates prior the |
on_every()
and on_every_second()
are convenience functions for
on_every_nth()
where the n
argument is pre-filled with 1L
and 2L
respectively.
A schedule object.
monthly_from_millenium_start <- on_every("month", as.Date("2000-01-01"))
schedule_days(monthly_from_millenium_start, during = 2000)
fortnightly_from_millenium_start <- on_every_second("week", as.Date("2000-01-01"))
schedule_days(fortnightly_from_millenium_start, during = 2000)
tenth_weekend_day_from_millenium_start <- on_every_nth(10, on_weekend(), as.Date("2000-01-01"))
schedule_days(tenth_weekend_day_from_millenium_start, during = 2000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.