powered by
Replaces grades with word equivalents.
replace_grade(x, grade_dt = lexicon::key_grade, ...)
The text variable.
A data.table of grades and corresponding word meanings.
ignored.
Returns a vector of strings with grades replaced with word equivalents.
# NOT RUN { (text <- replace_grade(c( "I give an A+", "He deserves an F", "It's C+ work", "A poor example deserves a C!" ))) # }
Run the code above in your browser using DataLab