Skip to content

Commit

Permalink
changed lexicon names for grades/ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
trinker committed Jan 15, 2017
1 parent 2b99567 commit 6a02793
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/replace_grade.R
Expand Up @@ -17,7 +17,7 @@
#' "A poor example deserves a C!"
#' )))
#' replace_grade(text)
replace_grade <- function (x, grade_dt = lexicon::key_grades, ...) {
replace_grade <- function (x, grade_dt = lexicon::key_grade, ...) {
mgsub(x, grade_dt[["x"]], grade_dt[["y"]], fixed = FALSE)
}

2 changes: 1 addition & 1 deletion R/replace_rating.R
Expand Up @@ -24,7 +24,7 @@
#' )
#'
#' replace_rating(x)
replace_rating <- function (x, rating_dt = lexicon::key_ratings, ...) {
replace_rating <- function (x, rating_dt = lexicon::key_rating, ...) {
gsub("\\s+", " ", .mgsub(rating_dt[["x"]], paste0(" ",
rating_dt[["y"]], " "), x, ...))
}
Expand Down
2 changes: 1 addition & 1 deletion man/replace_grade.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/replace_rating.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a02793

Please sign in to comment.