Learn R Programming

dfeR (version 1.0.1)

format_ay: Format academic year

Description

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)

Value

Character vector of formatted academic year

Arguments

year

Academic year

Details

It accepts both numerical and character arguments.

See Also

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

Examples

Run this code
format_ay(201617)
format_ay("201617")

Run the code above in your browser using DataLab