weekday-arithmetic | R Documentation |
These are weekday methods for the arithmetic generics.
add_days()
Also check out the examples on the weekday()
page for more advanced
usage.
## S3 method for class 'clock_weekday'
add_days(x, n, ...)
x |
A weekday vector. |
n |
An integer vector to be converted to a duration, or a duration
corresponding to the arithmetic function being used. This corresponds
to the number of duration units to add. |
... |
These dots are for future extensions and must be empty. |
x
and n
are recycled against each other using
tidyverse recycling rules.
x
after performing the arithmetic.
saturday <- weekday(clock_weekdays$saturday)
saturday
add_days(saturday, 1)
add_days(saturday, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.