Calculate 4 digit PowerSchool TermID given first year of a school year

calc_ps_termid(sy, quarter = 0)

Arguments

sy

First year in a school year (e.g. 2015 for SY 2015-2016)

quarter

quarter the quarter as integer in a year. The default is 0, which returns the school year's termid.

Value

a character or integer vector

Examples

if (FALSE) calc_ps_termid(2015)