calc_academic_year: Calculate School or Academic Year from date

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Calculate School or Academic Year from date

Usage

1
calc_academic_year(x, format = "long", date_parser = lubridate::ymd)

Arguments

x

the date to be parsed

format

one of 'long', 'short', 'first_year', or 'second_year', which are rendered as 'SY 2015-2016', '15-16', '2015', or '2016', respectively, for the 2015-2016 school year.

date_parser

a parser (such as as lubrdiate's ymd function)

Value

a character or integer vector

Examples

1
calc_academic_year('2014-09-15')

kippchicago/silounloadr documentation built on Sept. 14, 2020, 6:58 p.m.