R/detectGreyZones.default.R

Defines functions detectGreyZones.default

#' @export
detectGreyZones.default <- function(table ){

    R <- nrow(table)
    C <- ncol(table)
    if (R < 2){
      stop("The agreement table must have atleast two rows!")
    }
    if (C < 2){
      stop("The agreement table must have atleast two columns!")
    }
    if (R != C){
      stop("The agreement table must be a square contingency table!")
    }
    if (any(table < 0)){
      stop("The counts in the agreement table must be nonnegative!")
    }
    
    res <- detectGreyZones.main(table = table)
   
    res$call <- match.call()
    class(res) <- c("detectGreyZones")
    res
    
  }

Try the GreyZones package in your browser

Any scripts or data that you put into this service are public.

GreyZones documentation built on Sept. 30, 2024, 9:22 a.m.