R/checkfornumberorvector.R

Defines functions checkfornumberorvector

Documented in checkfornumberorvector

checkfornumberorvector <-
function(x, name)
 {
  if ((!inherits(x, "integer") && !inherits(x, "numeric")))
     stop(paste("'", name, "' must be a number or a vector", sep = ""))
  }

Try the tlm package in your browser

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

tlm documentation built on May 2, 2019, 2:11 p.m.