yrqfuns: Next/last academic year-quarters, i.e. yyyyq format.

Description Usage Arguments Value Examples

Description

Basic functions to deal with year-quarter codes. The functions get.q() and get.y() return a single quarter or year. The 'next' functions return the next year-quarter or next fall.

Usage

1
2
3
4
5
6
7
8
9

Arguments

x

a five digit academic year-quarter (yrq) code, e.g. 20014 for Fall 2001.

Value

An integer - either a subset fo the year-quarter or a modified 5-digit code.

Examples

1
2
3
4
5
6
7
8
get.q(19804)
get.y(19804)

x <- c(20013, 19752, 20183)
get.q(x)
get.y(x)
next.yrq(x)
next.fall(x)

zane-uw/edwHelpers documentation built on Nov. 24, 2019, 2:53 p.m.