R/score_symbol_search.R

Defines functions score_symbol_search

Documented in score_symbol_search

#' RM2C2: Scoring, Summarizing

#' @name score_symbol_search
#' @export
score_symbol_search <- function(df) {
  PACKAGE.VERSION <- packageVersion("RM2C2")
  scored <- df %>% mutate(accuracy = ifelse(user_response == correct_response,1,0)) %>%
    mutate(PACKAGE.VERSION = PACKAGE.VERSION)
  return(scored)
}
nelsonroque/surveydolphinr documentation built on May 27, 2020, 12:06 a.m.