mo_pub_date: Nicely formats date of publication for monthly data

View source: R/mo_pub_date.R

mo_pub_dateR Documentation

Nicely formats date of publication for monthly data

Description

The monthly tables have a string formatted date of publication in the header of each table. The publication date is always the first Wednesday of the month in which publication occurs. Data for month *m* are extracted and crunched in month *m* + 1, then published in month *m* + 2. So, this function assumes that the user is working in *m& + 1 and will publish in the subsequent month. This assumption can be over-ridden by supplying an actual date as an argument.

Usage

mo_pub_date(x = lubridate::today())

Arguments

x

A date object

Value

A string object in format "Day, Month

Examples

mo_pub_date()
x <- lubridate::dmy("01/02/2015")
mo_pub_date(x)

PublicHealthEngland/hcaidcs documentation built on Jan. 19, 2024, 8:38 a.m.