Skip to contents

Converts four-digit term codes to semester or quarter names with four-digit years.

Usage

convert.termCode(term.code, term.type = "full")

Arguments

term.code

Four-digit code indicating the semester and year of the term.

term.type

Indicate if the full or short semester (or quarter) designation is returned; default: "full".

Value

string term and four-digit year

Details

Within CampusSolutions the term code is a four digit representation of the century (position 1), the two-digit calendar year (positions 2 and 3), and the term (position 4). The following is the translation between digits and four-digit years and term types.

PositionInformation
1Century Code
(1 = 19xx & 2 = 20xx)
2 & 3Two-Digit Calendar Year
4Term Indicator (see below)

The information in the following table is available in the constant term.translation.

Term abbreviationFull Term NameShort Term Name
1Winter Quarter (WinterQ)WQ
2SpringSS
3Spring Quarter (SpringQ)SQ
5SummerUS
6Summer QuarterUQ
8FallFS
9Fall Quarter (FallQ)FQ

Examples

term.code <- "2208"

convert.termCode(term.code, term.type="full")
#> [1] "Fall 2020"
# [1] "Fall 2020"

convert.termCode(term.code, term.type="short")
#> [1] "FS 2020"
# [1] "FS 2020"