| .prev_on_cycle | R Documentation |
Given a repeating cycle anchored at start and stepping every
amount units, returns the latest cycle point strictly before
current.
.prev_on_cycle(
start,
current = Sys.time(),
amount = 1L,
unit = c("second", "minute", "hour", "day", "week", "month", "year")
)
start |
|
current |
|
amount |
Positive integer; number of |
unit |
Character; one of |
A Date or POSIXct of the same class and timezone as
start, or NA if current <= start.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.