Skip to contents

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

Usage

format_ay(year)

Arguments

year

Academic year

Value

Character vector of formatted academic year

Details

It accepts both numerical and character arguments.

See also

Other formatting functions: format_ay_reverse(), format_fy(), format_fy_reverse()

Examples

format_ay(201617)
#> [1] "2016/17"
format_ay("201617")
#> [1] "2016/17"