data-raw/Removed functions/0_plot_confusion2.R

#  ------------------------------------------------------------------------
#' @rdname qplot_confusion
#' @export
plot_confusion2 <- function(Prediction, Reference,...){
    if (length(Prediction) != length(Reference)) {
        stop("Lengths of vectors `Prediction` and `Reference` must be equal.")
    }
    conf <- table(Prediction,Reference)
    qplot_confusion(conf = conf, ...)
}
GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.