View source: R/calc_calendar_date.R
calc_calendar_date | R Documentation |
Find calendar date for a weekday in a given month. For example, you might want to know the date for the second Wednesday of December in the current year. This is the typical date for the meeting of the Joint Technical Committee for the Pacific Hake stock assessment.
calc_calendar_date(
number = 2,
month = 12,
year = as.numeric(format(Sys.time(), "%Y")),
weekday = "Wednesday"
)
number |
The iteration you want, e.g.,
|
month |
An integer for the desired month.
Options include values in |
year |
The year of interest as a four-digit integer. |
weekday |
The day of the week that you are interested in.
For example, |
Kelli F. Johnson
# Find second Wednesday in December of current year
calc_calendar_date()
# Find third Wednesday in December of current year
calc_calendar_date(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.