Description Usage Arguments Details Value
round2wday rounds a date to the nearest target weekday.
1 | round2wday(date, targetwday)
|
date |
Date, POSIXct, POSIXlt, or character string the the format "YYYY-MM-DD" |
targetwday |
Target weekday |
Target weekday can be specified as a named weekday or its numerical equivalent, from the following table:
| Name | Number |
| Sunday | 1 |
| Monday | 2 |
| Tuesday | 3 |
| Wednesday | 4 |
| Thursday | 5 |
| Friday | 6 |
| Saturday | 7 |
| cdcweek.start | 1 |
| cdcweek.end | 7 |
| isoweek.start | 2 |
| isoweek.end | 1 |
Date ("YYYY-MM-DD")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.