fy_six: Create six character financial year from date

View source: R/fy_six.R

fy_sixR Documentation

Create six character financial year from date

Description

Takes date variables and returns six character financial years (e.g. 201213) for merging with kh03 and other data. Needs further work to return ordered factor.

Usage

fy_six(x)

Arguments

x

A date character

Value

Six character string giving the financial year, e.g. 201213

Examples

x <- lubridate::dmy("01-01-2012")
fy_six(x)

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