In this function, a date is translated to the academic year in which it falls. This is based on a start of the academic year on the 1st of September.

academic_year(x, start_1_oct = FALSE)

Arguments

x

A date, or vector with multiple dates. POSIXct is also accepted.

start_1_oct

Does the academic year start on the 1st of October? default FALSE: based on September 1st

Value

The academic year in which the specified date falls

See also

Examples

academic_year(lubridate::today())
#> [1] 2023