list_weekdays | R Documentation |
Determine the exact days (i.e. YYYY-MM-DD) that a specific day of the week falls on.
list_weekdays(year, month, weekday)
year |
character or numeric for 4 digit year. |
month |
character or numeric (01-12) for month. |
weekday |
character value for day of the week (e.g. 'Monday'). |
Date vector object in YYYY-MM-DD format.
list_weekdays(2021, 12, 'Monday')
list_weekdays(2021, 12, 'Monday')[1]
list_weekdays('2021', 12, 'Monday')
lapply(c(1990:2000), list_weekdays, month = 12, weekday = 'Monday')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.