% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/replace_grade.R
\name{replace_grade}
\alias{replace_grade}
\title{Replace Grades With Words}
\usage{
replace_grade(x, grade_dt = lexicon::key_grade, ...)
}
\arguments{
\item{x}{The text variable.}

\item{grade_dt}{A \pkg{data.table} of grades and corresponding word meanings.}

\item{\ldots}{ignored.}
}
\value{
Returns a vector of strings with grades replaced with word
equivalents.
}
\description{
Replaces grades 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!"
)))
}
\keyword{grade}
