decode_grade: Convert Grade Codes to Full Descriptions

Description Usage Arguments Details Value Author(s) See Also

View source: R/panthr.r

Description

decode_grade converts grade code fields into full-length labels by evaluating a scalar or vector of values of class character. It also allows automated "cleaning" of validated values in a more human-readable format. Due to duplications in the validation data, multiple values may be returned. This function is currently in development.

Usage

1
decode_grade(code, clean = FALSE)

Arguments

code

A scalar or vector of length n and class character containing one or more grade codes.

clean

A logical value (i.e. TRUE or FALSE) to indicate whether returned values should be made more human-readable. Defaults to 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 grade 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 grade descriptions. 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.