fy_long: Format date into long text financial year.

View source: R/fy_long.R

fy_longR Documentation

Format date into long text financial year.

Description

Formats date from date or POSIX class to a text string giving the financial year as 'April yyyy to March yyyy'

Usage

fy_long(date_var)

Arguments

date_var

A date variable in class Date or POSIX

Value

A text string giving the financial year.

See Also

fy_short

fy_long_short

ordered_fin_qtr

fy_six_to_long

Examples

x <- lubridate::dmy("01/01/2001")
fy_long(x)
x <- lubridate::ymd("2016-01-01")
fy_long(x)

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