replace_grade: Replace Grades With Words

Description Usage Arguments Value Examples

View source: R/replace_grade.R

Description

Replaces grades with word equivalents.

Usage

1
replace_grade(x, grade_dt = lexicon::key_grade, ...)

Arguments

x

The text variable.

grade_dt

A data.table of grades and corresponding word meanings.

...

ignored.

Value

Returns a vector of strings with grades replaced with word equivalents.

Examples

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!"
)))

trinker/textmod documentation built on June 11, 2018, 3:49 a.m.