Description Usage Arguments Details
Gives the date of a given weekday to a given date
1 | next_weekday(x, index, method = "ceiling")
|
x |
date vector |
index |
which day in the week 0:6, d=0 is Sunday, d=1 is Monday, ..., d=6 is Saturday |
method |
"ceiling": last day of the week given the weekend. "floor": first day of week |
The idea is that relative to the UNIX Epoch that d-4 falls on day of the week d where d=0 is Sunday, d=1 is Monday, ..., d=6 is Saturday so any multiple of 7 days from that also falls on day of the week d.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.