school_year: Generate school years

Description Usage Arguments Details Value Author(s) Examples

View source: R/school_year.R

Description

Converts date objects to school years.

Usage

1

Arguments

date

a date object

Details

school_year takes in a date object and returns a character vector denoting the school year for which that date falls within. It considers Aug 1st the first day of that school year.

Value

A character vector

Author(s)

Sven Halvorson ([email protected])

Examples

1
2
3
4
library("lubridate")
d = c("10232015","02042016","08211999")
d = mdy(d)
school_year(d)

svenhalvorson/SvenR documentation built on June 24, 2018, 9:25 a.m.