R/results2Text.R

Defines functions results2Text

Documented in results2Text

#' Convert numeric response to text value
#' @param response a value between 0 and 1
#' @param threshold specify the threshold for success
#' @export
results2Text <- function(response, threshold = .5) {
  ifelse(response > threshold, "success", "failure")
}
John-Poplett/novels documentation built on Jan. 28, 2020, 12:02 a.m.