format_fy: Format financial year

View source: R/format.R

format_fyR Documentation

Format financial year

Description

This function formats financial year variables for reporting purposes. It will convert an year input from 201516 format to 2015-16 format.

Usage

format_fy(year)

Arguments

year

Financial year, a single value or a vector

Details

It accepts both numerical and character arguments.

Value

Character vector of formatted financial years

See Also

Other format: format_ay(), format_ay_reverse(), format_fy_reverse()

Examples

format_fy(201617)
format_fy("201617")
format_fy(c(201617, 201718))

dfeR documentation built on Sept. 24, 2026, 1:07 a.m.