yr: Assign a year to a date

View source: R/yr.R

yrR Documentation

Assign a year to a date

Description

The yr functions take the end date of the extract period for the Hospital Standardised Mortality Ratios Publication and returns the latest year in text form.

Usage

yr(end_date)

Arguments

end_date

The cut-off date for data to be included in the current HSMR publication, supplied with Date class. Must be the final day of either March, June, September or December.

Examples

yr(end_date = lubridate::dmy(31032019))

NHS-NSS-transforming-publications/hsmr documentation built on June 30, 2024, 11:48 a.m.