fq_short: Format date into short text financial quarter.

View source: R/fq_short.R

fq_shortR Documentation

Format date into short text financial quarter.

Description

Formats date from date or POSIX class to a text string giving the financial quarter as integer from 1 to 4.

Usage

fq_short(date_var)

Arguments

date_var

A date variable in class Date or POSIX

Value

A text string giving the financial quarter, where April to June is quarter 1 and January to March is quarter 4.

Examples

x <- lubridate::dmy("01/01/2001")
fq_short(x)

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