Description Usage Arguments Value Examples
View source: R/get_weekday_before_dates.R
Get the dates of a weekday before a specified date
1 | get_wday_before_dates(weekday, dates, search = "before")
|
weekday |
Character. Name of the week (e.g. "monday") |
dates |
The date of interest. Format: YYYY-MM-DD. |
search |
Search "before" of "after" the specified date. |
Character vector in the format YYYY-MM-DD.
1 2 3 4 | # search the monday before the "2021-12-29"
date_of_monday <- get_wday_before_dates(weekday = "monday", dates = "2021-12-29", search = "before")
# Confirm
weekdays(as.Date(date_of_monday))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.