R/zerofind.R

Defines functions zerofind

Documented in zerofind

zerofind <- function(fmat) {
  if (!is.numeric(fmat)) stop("Argument is not numeric.")
  pairNums <- c(min(fmat),max(fmat))
  if (length(pairNums) != 2) stop("Argument is not of length 2.")
  if (min(pairNums) <= 0 && max(pairNums) >= 0) return(TRUE) else return(FALSE)
}

Try the fda package in your browser

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

fda documentation built on May 31, 2023, 9:19 p.m.