View source: R/first_wednesday.R
first_wednesday | R Documentation |
Returns the first Wednesday of a month as a date in YYYY-MM-DD. Used in monthly outputs for determining publication date. Relies on lubridate for date calculations.
first_wednesday(x)
x |
A date |
A date giving the first Wednesday of the month.
first_wednesday(lubridate::floor_date(lubridate::today(), "month"))
x <- as.Date("01/01/2017", format = "%d/%m/%Y")
weekdays(first_wednesday(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.