R/confusion.R

Defines functions false_positive false_negative

Documented in false_negative false_positive

#' Functions to judge false positive and false negative.
#'
#' @param predicted,actual vectors to compare
#' @rdname confusion
#' @export
false_negative = function(predicted, actual) {
  anyNA(match(actual, predicted))
}

#' @rdname confusion
#' @export
false_positive = function(predicted, actual) {
  anyNA(match(predicted, actual))
}
heavywatal/cellpoptime documentation built on May 5, 2021, 7:16 p.m.