school_year: Generate school years

Description Usage Arguments Details Value Author(s) Examples

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 (svenedmail@gmail.com)

Examples

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

svenhalvorson/SvenSFPS documentation built on May 21, 2019, 11:42 a.m.