date_term: Convert Dates to Academic Terms

Description Usage Arguments Details Value Author(s) See Also

View source: R/panthr.r

Description

date_term converts date field values in DD-MMM-YY format to standard academic terms in YYYYMM format. Dates falling within each term are assigned to the existing semester, i.e. "Fall", "Spring", and "Summer" as 08, 01, and 05, respectively. The option to "round up" to the subsequent semester is also available.

Usage

1
date_term(date, round.up = FALSE)

Arguments

date

A scalar or vector of length n and class character containing one or more date values in DD-MMM-YY format.

round.up

A logical value (i.e. TRUE or FALSE) indicating whether to convert date values to the subsequent academic term. Defaults to FALSE.

Details

Notably, conversion to academic terms fluidly opens all term* family functions, e.g. term_year_fiscal, in package panthr.

Because the warehouse year format is YY, dates prior to 1930 C.E. will automatically convert to post-2000 C.E.

Values passed to argument date = which are not in DD-MMM-YY format or contain unrecognized month abbreviations are coerced to NA (missing) values and a warning message is thrown.

Value

A scalar or vector of values of class character containing standardized terms in YYYYMM format.

Author(s)

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

See Also

term_dash, term_date, term_name, term_season, term_year_academic, term_year_calendar, term_year_fiscal


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