Description Usage Arguments Value Examples
Replaces grades with word equivalents.
1 | replace_grade(x, grade_dt = lexicon::key_grade, ...)
|
x |
The text variable. |
grade_dt |
A data.table of grades and corresponding word meanings. |
... |
ignored. |
Returns a vector of strings with grades replaced with word equivalents.
1 2 3 4 5 6 | (text <- replace_grade(c(
"I give an A+",
"He deserves an F",
"It's C+ work",
"A poor example deserves a C!"
)))
|
[1] "I give an very excellent excellent" "He deserves an very very bad"
[3] "It's slightly above average work" "A poor example deserves a average!"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.