Skip to content

Commit 9fddcd7

Browse files
committed
fix reverse dependency
1 parent 02d1a4f commit 9fddcd7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

R/zerofind.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
zerofind <- function(fmat) {
2+
if (!is.numeric(fmat)) stop("Argument is not numeric.")
3+
pairNums <- c(min(fmat),max(fmat))
4+
if (length(pairNums) != 2) stop("Argument is not of length 2.")
5+
if (min(pairNums) <= 0 && max(pairNums) >= 0) return(TRUE) else return(FALSE)
6+
}

0 commit comments

Comments
 (0)