fq5: Convert a date to five-character financial quarter

View source: R/fq5.R

fq5R Documentation

Convert a date to five-character financial quarter

Description

Takes a date and returns a five character financial year and quarter (i.e. yyyyq).

Usage

fq5(x)

Arguments

x

A date variable

Value

A numeric value with five digits giving the financial year in the first four digits and the quarter in the final digit.

Examples

x <- lubridate::dmy("01/01/2012")
fq5(x)
x <- lubridate::dmy("01/04/2012")
fq5(x)

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