replace_grade {textclean}R Documentation

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

(text <- replace_grade(c(
    "I give an A+",
    "He deserves an F",
    "It's C+ work",
    "A poor example deserves a C!"
)))

[Package textclean version 0.9.3 Index]