R/rangechk.R

Defines functions rangechk

rangechk <- function(rangeval)
{
#  check a range vector argument

#  last modified 29 September 2008 by Jim Ramsay

  nrangeval = length(rangeval)
  OK <- TRUE
  if (!is.numeric(rangeval))          OK <- FALSE
  if (!is.vector(rangeval))           OK <- FALSE
  if (nrangeval < 1 || nrangeval > 2) OK <- FALSE
  if (rangeval[1] >= rangeval[2])     OK <- FALSE
  return(OK)
}

Try the fda package in your browser

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

fda documentation built on Sept. 30, 2024, 9:19 a.m.