R/is_thres_error.R

is.thres.error <- function(x){ # test for threshold.TotalError parameter
  if(!is.numeric(x)){stop("The threshold.TotalError you entered is not numeric!")}
  if(!is.na(x[2])){stop("The threshold.TotalError you entered is a vector!")}
  if(!(x>0)){stop("The threshold.TotalError you entered is zero or less!")}
}

Try the TeachNet package in your browser

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

TeachNet documentation built on May 2, 2019, 7 a.m.