fy_short: Format date into short text financial year.

View source: R/fy_short.R

fy_shortR Documentation

Format date into short text financial year.

Description

Formats date from date or POSIX class to a text string giving the financial year as 'yy/yy'

Usage

fy_short(date_var, sep = "/")

Arguments

date_var

A date variable in class Date or POSIX

sep

A separator between two years. Defaults to "/"

Value

A text string giving the financial year.

See Also

fy_long

Examples

x <- lubridate::dmy("01/01/2001")
fy_short(x)
fy_short(x, sep = "_")

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