We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02d1a4f commit 9fddcd7Copy full SHA for 9fddcd7
R/zerofind.R
@@ -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