term_name: Format Term as Season & Year

Description Usage Arguments Details Value Author(s) See Also

View source: R/panthr.r

Description

term_name formats the TERM field by converting it into a string of class character containing the season or semester and calendar year, e.g. Fall 2019. An option is available to customize how season and year are joined.

Usage

1
term_name(term, sep = " ")

Arguments

term

A 6-character TERM code, which may be a scalar value or vector of length n in YYYYMM format.

sep

A character string which separates season and year. Input must be wrapped in quotes, e.g. " ", "-", or ", ".

Details

Output may be made categorical or ordinal nominal using function factor or as.factor, which may specify order.

Value

A scalar or vector of values of class character combininging season and year, e.g. Summer 2016.

Author(s)

Jamison R. Crawford, Institutional Research Associate, Georgia State University

See Also

factor, as.factor


jamisoncrawford/panthr documentation built on March 9, 2020, 6:18 p.m.