Learn R Programming

textclean (version 0.9.3)

replace_grade: Replace Grades With Words

Description

Replaces grades with word equivalents.

Usage

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

Run this code
# 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