terms: Term Codes and Lookups

Description Usage Arguments Format Details Value Examples

Description

A data frame that contains additional information and formatting options for term codes.

The following functions generate a Term Lookup table in order to make identifying term-specific information easier.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
terms

term_lu(start = 2005, end = as.numeric(format(Sys.Date(), "%Y")),
  seasons = c("CSU", "CSP", "CFA"))

term_summer(start = 2005, end = as.numeric(format(Sys.Date(), "%Y")))

term_fall(start = 2005, end = as.numeric(format(Sys.Date(), "%Y")))

term_spring(start = 2005, end = as.numeric(format(Sys.Date(), "%Y")))

term_dates(start = 2005, end = as.numeric(format(Sys.Date(), "%Y")),
  seasons = c("CSU", "CSP", "CFA"))

Arguments

start

Year as an integer

end

Year as an integer

seasons

Character vector with any combination of the following elements: c("CSU", "CFA", "CSP")

Format

A data frame with 78 rows and 12 variables:

term

chr: Term Code; 1st four digits describe the year, Last 3 characters describe the season. (CSU = Summer, CFA = Fall, CSP = Spring)

term_numeric

chr: Term Code; 1st four digits describe the year, Last digit describes the season. (5 = Summer, 7 = Fall, 3 = Spring)

term_season

chr: Season of the term. Summer, Fall, or Spring

term_academic_year

chr: Academic Year for the term.

term_start_year

num: Starting year of the Academic Year

term_rank

num: The ordering sequence of terms

term_rank_primary

num: The ordering sequence of primary terms (Fall and Spring)

term_rank_rounded

num: The rounded ordering sequence of terms (Summer Rank == Fall Rank)

term_gi03

chr: California Community Colleges MIS Term Identifier. Additional Details: http://extranet.cccco.edu/Portals/1/TRIS/MIS/Left_Nav/DED/Data_Elements/GI/gi03.pdf

term_next

chr: The next term in the sequence

term_next_year

chr: The current term plus a year

term_start_date

date: The start date of the term

term_term_format

chr: The term code formatted to properly order given the heirarchy of characters (" " < "_" < "-")

Details

For terms_dates(), you need to have an ODBC connection to the EDS Database, named "Research". You also need the DBI package installed.

Value

Returns a dataframe with information for each term

Examples

1
2
3
4
5
# Run with default arguments
terms_lu()

# Specify date range and seasons
terms_lu(start = 1990, end = 2008, seasons = c("CFA"))

christian-million/researchR documentation built on May 15, 2019, 12:45 p.m.