pub_date | R Documentation |
pub_date
takes the final date for which SMR data are
included in the current publication. It uses this cut-off date to calculate
the publication dates of the previous, current and next HSMR publications.
pub_date(end_date, pub = c("previous", "current", "next"))
end_date |
The cut-off date for data to be included in the current HSMR
publication, supplied with |
pub |
A |
The publication date for HSMR is always the second Tuesday of the month.
extract_end_date <- lubridate::dmy(30092018)
pub_date(end_date = extract_end_date, pub = "previous")
format(pub_date(end_date = extract_end_date, pub = "current"), "%d %B %Y")
format(pub_date(end_date = extract_end_date, pub = "next"), "%d/%m/%Y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.