time_period2fyear: Convert time period variable to fyear for merging with KH03...

View source: R/time_period2fyear.R

time_period2fyearR Documentation

Convert time period variable to fyear for merging with KH03 data

Description

HCAI DCS QMLR data sets include a time period variable in the format "qqq-qqq yyyy". To merge with KH03 data, this needs to be converted to "yyyyq". For fyear, q1 is April-June and q4 is Jan-Feb.

Usage

time_period2fyear(x)

Arguments

x

A text string, in format "qqq-qqq yyyy"

Value

A text string giving the quarter in fyear format.

Examples

x <- "Oct-Dec 2015"
time_period2fyear(x)

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