decode_college: Convert College Codes to Full or Abbreviated Labels

Description Usage Arguments Details Value Author(s) See Also

View source: R/panthr.r

Description

decode_college converts all *COLLEGE code fields, e.g. GRAD_COLLEGE, into full-length labels by evaluating a scalar or vector of values of class character.

Usage

1
decode_college(code, short = FALSE)

Arguments

code

A scalar or vector of length n and class character containing one or more college codes, e.g. BU, AS, etc.

short

A logical value indicating whether labels should be abbreviated. Useful for tables and graphics in limiting real estate and non-data ink. Defaults to short = FALSE.

Details

Output may be made categorical using function factor or as.factor. This function also allows for easily tallying counts using, e.g., function table.

Values containing unrecognized college codes are coerced to NA (missing) values and a warning message is thrown.

Value

A scalar or vector of values of class character containing full-length or abbreviated college names. Missing values are preserved.

Author(s)

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

See Also

table


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