Learn R Programming

vvconverter (version 0.7.0)

academic_year: Academic year

Description

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.

Usage

academic_year(x, start_1_oct = FALSE)

Value

The academic year in which the specified date falls

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

See Also

Other vector calculations: clean_multiple_underscores(), interval_round(), month_name(), sum_0_1(), transform_01_to_ft()

Examples

Run this code
academic_year(lubridate::today())

Run the code above in your browser using DataLab